Re: Data Encryption in PostgreSQL, and a Tutorial. - Mailing list pgsql-general

From
Subject Re: Data Encryption in PostgreSQL, and a Tutorial.
Date
Msg-id 64898.216.238.112.88.1084291161.squirrel@$HOSTNAME
Whole thread Raw
In response to Re: Data Encryption in PostgreSQL, and a Tutorial.  (Michal Hlavac <hlavki@medium13.sk>)
Responses Re: Data Encryption in PostgreSQL, and a Tutorial.  (Dias Bantekas <dbadekas@aia.gr>)
List 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 by date:

Previous
From: "Thomas LeBlanc"
Date:
Subject: How to move data from 1 database to another?
Next
From: Dennis Gearon
Date:
Subject: bytea