Re: Data Encryption in PostgreSQL, and a Tutorial.

From: Dias Bantekas <dbadekas(at)aia(dot)gr>
To:
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Data Encryption in PostgreSQL, and a Tutorial.
Date: 2004-05-12 07:00:10
Message-ID: 40A1CB7A.7040403@aia.gr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

btober(at)computer(dot)org wrote:
>>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
>
>
>
>

thanks hlk, that's exactly what I was looking for.
Now I can create a md5() function and do my job!

encode is a native PG string function, it is not defined in pgcrypto.

Dias

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2004-05-12 08:46:42 Re: Need a hardware optimization pointer
Previous Message Dirk Försterling 2004-05-12 05:59:57 Re: Is Linux 2.6.5 kernel good enough for production?