Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 56AD7476C15 for ; Mon, 13 Jan 2003 09:53:50 -0500 (EST) Received: from localhost.localdomain (thompsonmccully.com [63.215.160.3]) by postgresql.org (Postfix) with ESMTP id A89B1476C29 for ; Mon, 13 Jan 2003 09:53:49 -0500 (EST) Received: from dynedge.com (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id h0DErqY22011 for ; Mon, 13 Jan 2003 08:53:52 -0600 From: "Rob Abernethy IV" To: "postgresql" Subject: Re: Encrypted Passwords Date: Mon, 13 Jan 2003 09:53:52 +0800 Message-Id: <20030113095352.M56045@dynedge.com> In-Reply-To: <20030110154754.M17846@dynedge.com> References: <20030110144927.M51502@dynedge.com> <20030110154754.M17846@dynedge.com> X-Mailer: Open WebMail 1.64 20020419 X-OriginatingIP: 24.208.224.236 (abernethy@dynedge.com) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/116 X-Sequence-Number: 6958 Can you tell postgres *NOT* to use a salt when calculating the MD5 digest? I found that it prepends the username to the password before making the calculation. -- Robert Abernethy IV Dynamic Edge, Inc. 734.975.0460 > Perl also came up with the same digest as Java. > > -- > Robert Abernethy IV > Dynamic Edge, Inc. > 734.975.0460 > > > How does postgres calculate the MD5 version of a password to store > > in the database during user creation? I am trying to set up a > > postgres JDBCRealm to work with Tomcat. The problem is that the > > resulting digest from Java is different then the digest stored in > > the database for the same word. > > > > clear-text: tomcat > > java: 1b359d8753858b55befa0441067aaed3 > > postgres: md5efcc1c51a80be13b59cdb96d758a0184 > > > > -- > > Robert Abernethy IV > > Dynamic Edge, Inc. > > 734.975.0460 > > > > ---------------------------(end of broadcast)--------------------------- > > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly