Re: Storing passwords

From: Christoph Dalitz <christoph(dot)dalitz(at)hs-niederrhein(dot)de>
To: Troy(dot)Campano(at)libertymutual(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Storing passwords
Date: 2002-12-27 16:34:46
Message-ID: 20021227173446.7e254e4b.christoph.dalitz@hs-niederrhein.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Date: Fri, 27 Dec 2002 10:01:30 -0500
From: "Campano, Troy" <Troy(dot)Campano(at)LibertyMutual(dot)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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Payal Rathod 2002-12-27 17:33:42 Re: readline
Previous Message Simon Mitchell 2002-12-27 16:23:16 Re: Trouble with UNIX TimeStamps