Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DBAA14771BE for ; Mon, 13 Jan 2003 18:35:43 -0500 (EST) Received: from hacklab.net (168.150-60-66-fuji-dsl.static.surewest.net [66.60.150.168]) by postgresql.org (Postfix) with SMTP id 748F847718B for ; Mon, 13 Jan 2003 18:35:37 -0500 (EST) Received: (qmail 26653 invoked by uid 421); 13 Jan 2003 23:32:42 -0000 Received: from pvspam-postgres@hacklab.net by hacklab.net with qmail-scanner-0.93 (. Clean. Processed in 0.132041 secs); 13/01/2003 15:32:42 Received: from localhost (HELO localhost.localdomain) (antispam@127.0.0.1) by localhost with SMTP; 13 Jan 2003 23:32:42 -0000 Subject: Re: Encrypted Passwords From: Tim Ellis To: Rob Abernethy IV Cc: postgresql In-Reply-To: <20030113104720.M77548@dynedge.com> References: <20030110144927.M51502@dynedge.com> <20030110154754.M17846@dynedge.com> <20030113095352.M56045@dynedge.com> <25227.1042472298@sss.pgh.pa.us> <20030113104720.M77548@dynedge.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8-3mdk Date: 13 Jan 2003 15:11:13 -0500 Message-Id: <1042488673.23675.215.camel@timetop> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/134 X-Sequence-Number: 6976 > The problem > is that Tomcat computes the digest without a salt and, therefore, > authentication is failing because the two digested versions of the same > password are different. If there is not a feature within Tomcat to allow adding the username as a salt to the MD5 hash, then Tomcat is broken. This is so common, I cannot imagine any product bothering to implement MD5 hashing without allowing a fairly generic salting API call. Thankfully, Tomcat comes with source, so it can be fixed if, indeed, it is broken. Do not waste any energy trying to get Postgres to not salt the hash, you'd be using energy ruining one product instead of fixing another. -- Tim Ellis Senior Database Architect