pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Prasanth <dbadmin@nqadmin.com>
To: William Shatner <shatner.william@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Storing/Using Passwords
Date: Wed, 18 May 2005 09:33:16 -0500
Message-ID: <428B522C.1050301@nqadmin.com> (raw)
In-Reply-To: <9af1b19905051803367f893136@mail.gmail.com>
References: <9af1b19905051803367f893136@mail.gmail.com>

You can probably store a md5 of the password.

But when you do that you can't retrieve the password.

If some one forgets their password you have to reset it.

-Prasanth.


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 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 
> 



view thread (3+ messages)

Message-ID: <428B522C.1050301@nqadmin.com>
Permalink:  ../428B522C.1050301@nqadmin.com/
Also on:    postgresql.org/message-id/428B522C.1050301@nqadmin.com

 · 

reply

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: dbadmin@nqadmin.com, shatner.william@gmail.com
  Subject: Re: Storing/Using Passwords
  In-Reply-To: <428B522C.1050301@nqadmin.com>
  References: <9af1b19905051803367f893136@mail.gmail.com> <428B522C.1050301@nqadmin.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