X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 842D552896 for ; Wed, 18 May 2005 11:29:32 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 32154-04 for ; Wed, 18 May 2005 14:29:26 +0000 (GMT) Received: from mail.liquidcore.com (mail.liquidcore.net [68.17.96.60]) by svr1.postgresql.org (Postfix) with ESMTP id 776E75282F for ; Wed, 18 May 2005 11:29:23 -0300 (ADT) Received: (from root@localhost) by mail.liquidcore.com (8.13.1/8.12.10) id j4IETZXJ008897; Wed, 18 May 2005 09:29:35 -0500 Received: from [192.168.0.81] (ppasalalinux.nqadmin.com [192.168.0.81]) by mail.liquidcore.com (8.13.1/8.12.10) with ESMTP id j4IETYrO008866; Wed, 18 May 2005 09:29:34 -0500 Message-ID: <428B522C.1050301@nqadmin.com> Date: Wed, 18 May 2005 09:33:16 -0500 From: Prasanth Reply-To: dbadmin@nqadmin.com User-Agent: Mozilla Thunderbird 1.0.2-1.3.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: William Shatner Cc: pgsql-jdbc@postgresql.org Subject: Re: Storing/Using Passwords References: <9af1b19905051803367f893136@mail.gmail.com> In-Reply-To: <9af1b19905051803367f893136@mail.gmail.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-scanner: scanned for malicious content X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.051 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200505/88 X-Sequence-Number: 12919 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) > >