Re: [GENERAL] MD5() function not available ??

Поиск
Список
Период
Сортировка
Искать

Re: [GENERAL] MD5() function not available ??

От:
Dennis Bjorklund <db@zigo.dhs.org>
Дата:
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

FAQ