Re: Storing passwords - Mailing list pgsql-general

From Christoph Dalitz
Subject Re: Storing passwords
Date
Msg-id 20021227173446.7e254e4b.christoph.dalitz@hs-niederrhein.de
Whole thread Raw
In response to Storing passwords  ("Campano, Troy" <Troy.Campano@LibertyMutual.com>)
Responses Re: Storing passwords  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-general
Date: Fri, 27 Dec 2002 10:01:30 -0500
From: "Campano, Troy" <Troy.Campano@LibertyMutual.com>
>
> Is there a PostgreSQL function that allows you to store passwords, but it encrypts them?
> If not, are there any recommendations for storing passwords?
>
The easiest solution would be a stored procedure written in C that simply
calls the crypt() function (for details: "man crypt"). In that case you will
also need to store the "salt" with the encrypted password.

Even if you have not yet written any stored procedure, it should be done
in less than two hours. See the documentation on "server side programming" for details.

Hope this helps,

Christoph Dalitz

pgsql-general by date:

Previous
From: Simon Mitchell
Date:
Subject: Re: Trouble with UNIX TimeStamps
Next
From: Payal Rathod
Date:
Subject: Re: readline