From: Richard Huxton <dev@archonet.com>
To: Deepthi Darshan <deepthi@granwill.com>
Cc: pgsql-sql@postgresql.org
Subject: Re:
Date: Fri, 28 Jan 2005 09:11:49 +0000
Message-ID: <41FA01D5.6050708@archonet.com> (raw)
In-Reply-To: <1106901557.41f9fa35222fb@granwill.com>
References: <1106901557.41f9fa35222fb@granwill.com>
Deepthi Darshan wrote:
> Hi,
>
> I have a database which has been set to encoding UTF-8.
>
> I have a table in this database in which i store the details of all the
> registered users. I am using PL/PGSQL and using one function i am entering the
> values into the database. There is one column for entering the passwords of all
> registered users. I want to store these passwords in an encrypted manner in the
> table. Can i encrypt the password in the stored procedure and will i not loose
> any data by entering the passwords in an encrytped manner.
There are a range of encryption functions available in contrib/pgcrypto
in the source distribution.
Some encryption is one-way (so you can't recover the original password,
just confirm a provided password matches it). Other encryption is
two-way, but you usually have a separate key to encrypt the passwords then.
--
Richard Huxton
Archonet Ltd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, deepthi@granwill.com
Subject: Re:
In-Reply-To: <41FA01D5.6050708@archonet.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox