Re: how to get the md5 result of a string ?

Поиск
Список
Период
Сортировка
От Marko Kreen
Тема Re: how to get the md5 result of a string ?
Дата
Msg-id 20010910231549.A2329@l-t.ee
обсуждение исходный текст
Ответ на how to get the md5 result of a string ?  (Feite Brekeveld <feite.brekeveld@osiris-it.nl>)
Список pgsql-general
On Mon, Sep 10, 2001 at 11:40:27PM +0200, Feite Brekeveld wrote:
> Is there a function like:
>
> select md5(<attribute_name>) from ....

    digest(field, 'md5')

If you want in hex:

    encode(digest(field, 'md5'), 'hex')

Look into contrib/pgcrypto in PostgreSQL source.

--
marko


В списке pgsql-general по дате отправления:

Предыдущее
От: teg@redhat.com (Trond Eivind Glomsrød)
Дата:
Сообщение: Re: How to make a REALLY FAST db server?
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: How to make a REALLY FAST db server?