Re: Storing/Using Passwords

From: Sean Davis <sdavis2(at)mail(dot)nih(dot)gov>
To: William Shatner <shatner(dot)william(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Storing/Using Passwords
Date: 2005-05-18 11:51:15
Message-ID: 4aa5d3f9b18b50d4c46ffdd73a27f498@mail.nih.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

You can compute an MD5 hash in Java and store that. Then, when a user
enters a password, just compare the same MD5 hash to the value stored
in the database.

Sean

On May 18, 2005, at 6:40 AM, 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.
>
> Kind Regards,
> Will
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 8: explain analyze is your friend
>

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Timo Roessner 2005-05-18 11:52:15 Re: cluster-operation successfull?
Previous Message William Shatner 2005-05-18 10:40:53 Storing/Using Passwords