Re: [JDBC] Storing/Using Passwords

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: William Shatner <shatner(dot)william(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, pgsql-novice(at)postgresql(dot)org
Subject: Re: [JDBC] Storing/Using Passwords
Date: 2005-05-18 14:32:33
Message-ID: 1116426752.31821.1.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Prasanth 2005-05-18 14:33:16 Re: Storing/Using Passwords
Previous Message Leif Jensen 2005-05-18 14:32:12 Re: Newbie question on RULEs .. or .. bug ?

Browse pgsql-jdbc by date

  From Date Subject
Next Message Prasanth 2005-05-18 14:33:16 Re: Storing/Using Passwords
Previous Message Oliver Jowett 2005-05-18 13:33:46 Re: Questions on property values