Re: Data Encryption in PostgreSQL, and a Tutorial.

Поиск
Список
Период
Сортировка
От
Тема Re: Data Encryption in PostgreSQL, and a Tutorial.
Дата
Msg-id 64898.216.238.112.88.1084291161.squirrel@$HOSTNAME
обсуждение исходный текст
Ответ на Re: Data Encryption in PostgreSQL, and a Tutorial.  (Michal Hlavac <hlavki@medium13.sk>)
Ответы Re: Data Encryption in PostgreSQL, and a Tutorial.  (Dias Bantekas <dbadekas@aia.gr>)
Список pgsql-general
> Dias Bantekas wrote:
>
>> does any one know how to get an md5()-like hash function using
>> pgcrypto for postgresql 7.3 ? without upgrading to 7.4
>>
>> Thanks for any input.
>
> SELECT encode(digest(v_password, 'md5'), 'hex');

BTW,

/usr/share/pgsql/contrib/pgcrypto.sql

is the script that defines the encode and digest functions.

--Berend Tober




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

Предыдущее
От: "Thomas LeBlanc"
Дата:
Сообщение: How to move data from 1 database to another?
Следующее
От: Dennis Gearon
Дата:
Сообщение: bytea