Re: how to get the md5 result of a string ? - Mailing list pgsql-general

From Marko Kreen
Subject Re: how to get the md5 result of a string ?
Date
Msg-id 20010910231549.A2329@l-t.ee
Whole thread Raw
In response to how to get the md5 result of a string ?  (Feite Brekeveld <feite.brekeveld@osiris-it.nl>)
List 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 by date:

Previous
From: teg@redhat.com (Trond Eivind Glomsrød)
Date:
Subject: Re: How to make a REALLY FAST db server?
Next
From: Lamar Owen
Date:
Subject: Re: How to make a REALLY FAST db server?