Re: Question on crypt password

From: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
To: gss+pg(at)cs(dot)brown(dot)edu
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Question on crypt password
Date: 2002-05-24 19:48:32
Message-ID: 20020524154832.0919ab62.nconway@klamath.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 24 May 2002 15:02:08 -0400
"Gregory Seidman" <gss+pg(at)cs(dot)brown(dot)edu> wrote:
> Neil Conway sez:
> } Use contrib/pgcrypto, store the hashed version of the password (say,
> } using SHA1). When you want to check if the correct password is used,
> } hash the string the user entered and compare it to the stored version.
>
> Where is the documentation on this?

In contrib/pgcrypto/README.pgcrypto, which is part of the PostgreSQL
source tree. Perhaps it should be better documented -- it's quite a
neat package.

> Is it like what I wound up doing (see below)?

Similar, but a lot more powerful.

Cheers,

Neil

--
Neil Conway <neilconway(at)rogers(dot)com>
PGP Key ID: DB3C29FC

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Darren Ferguson 2002-05-24 19:55:44 Re: problem with my function
Previous Message Tom Lane 2002-05-24 19:41:39 Re: Case Insensitive Data Type