pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedStoring/Using Passwords
3+ messages / 3 participants
[nested] [flat]
* Storing/Using Passwords
@ 2005-05-18 10:36 William Shatner <shatner.william@gmail.com>
0 siblings, 2 replies; 3+ messages in thread
From: William Shatner @ 2005-05-18 10:36 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-general@postgresql.org; pgsql-novice@postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [JDBC] Storing/Using Passwords
@ 2005-05-18 14:32 Scott Marlowe <smarlowe@g2switchworks.com>
parent: William Shatner <shatner.william@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Scott Marlowe @ 2005-05-18 14:32 UTC (permalink / raw)
To: William Shatner <shatner.william@gmail.com>; +Cc: pgsql-jdbc; pgsql-general@postgresql.org; pgsql-novice@postgresql.org
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.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Storing/Using Passwords
@ 2005-05-18 14:33 Prasanth <dbadmin@nqadmin.com>
parent: William Shatner <shatner.william@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Prasanth @ 2005-05-18 14:33 UTC (permalink / raw)
To: William Shatner <shatner.william@gmail.com>; +Cc: pgsql-jdbc
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)
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-05-18 14:33 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-05-18 10:36 Storing/Using Passwords William Shatner <shatner.william@gmail.com>
2005-05-18 14:32 ` Scott Marlowe <smarlowe@g2switchworks.com>
2005-05-18 14:33 ` Prasanth <dbadmin@nqadmin.com>
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