Re: MD5() function not available ?? - Mailing list pgsql-general

From Dennis Bjorklund
Subject Re: MD5() function not available ??
Date
Msg-id Pine.LNX.4.44.0309140709400.31553-100000@zigo.dhs.org
Whole thread Raw
In response to MD5() function not available ??  ("Marek Lewczuk" <marek.lewczuk@samar.pl>)
List pgsql-general
On Thu, 11 Sep 2003, Marek Lewczuk wrote:

> I've searched for MD5 crypting function in PG, but I did not find it.
> Anyone knows how to implement this function in PG ?

It's implemented in the pgcrypto module that is in contrib in the tarball.
Once you have added that you can for example do

dennis=# SELECT encode (digest ('the string', 'md5'), 'hex');
 44d5a3f30f0328e0cf60cd275ed3aac9

--
/Dennis


pgsql-general by date:

Previous
From: "Marc G. Fournier"
Date:
Subject: Re: need for in-place upgrades (was Re: State of Beta 2)
Next
From: Network Administrator
Date:
Subject: Re: State of Beta 2