From: Scott Marlowe <smarlowe@g2switchworks.com>
To: William Shatner <shatner.william@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-general@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: [JDBC] Storing/Using Passwords
Date: Wed, 18 May 2005 09:32:33 -0500
Message-ID: <1116426752.31821.1.camel@state.g2switchworks.com> (raw)
In-Reply-To: <9af1b19905051803367f893136@mail.gmail.com>
References: <9af1b19905051803367f893136@mail.gmail.com>
On Wed, 2005-05-18 at 05:36, William Shatner wrote:
> Hello,
>
>
> I am using PostgreSQL 8.0 as a data repository for a Java based system
> and I now want to add users to my java program with usernames and
> passwords. Is their an encrypted password field I can use in a User
> Table to store passwords or what would be the best way to approach
> this?
>
> The usernames and passwords will apply for connection to the to the
> java program only. All users will be connecting to the PostgreSQL
> database transparently using the same username/password stored in a
> properties file to validate their java program username/passwords.
The md5() function is quite useful for this. It's a one way hash
function that's commonly used by many applications to create password
hashes.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: smarlowe@g2switchworks.com, shatner.william@gmail.com, pgsql-general@postgresql.org, pgsql-novice@postgresql.org
Subject: Re: [JDBC] Storing/Using Passwords
In-Reply-To: <1116426752.31821.1.camel@state.g2switchworks.com>
References: <9af1b19905051803367f893136@mail.gmail.com> <1116426752.31821.1.camel@state.g2switchworks.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