Re: SHA-1 vs MD5

From: "Chad Wagner" <chad(dot)wagner(at)gmail(dot)com>
To: "Ezequias Rodrigues da Rocha" <ezequias(dot)rocha(at)gmail(dot)com>
Cc: PostgreSQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: SHA-1 vs MD5
Date: 2007-03-09 13:14:16
Message-ID: 81961ff50703090514k562d1218rd44df84a13d69507@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 3/9/07, Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com> wrote:
>
> Thank you so much for your information. I installed the pgCrypto. Now I
> have more than 40 functions (i believe all are from pgcrypto) but when I try
> to run your query:
>
> select encode(digest('blahblah', 'sha256'), 'hex');
>
> I got the error:
>
> ERROR: Cannot use "sha256": No such hash algorithm
> SQL state: 22023
>

It may not be available in your version of the database/pgcrypto module, my
test was performed on 8.2.3.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Shavonne Marietta Wijesinghe 2007-03-09 13:56:06 CREATE TABLE
Previous Message Richard Huxton 2007-03-09 12:35:11 Re: Table inherit & foreign key problem