pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Rob Abernethy IV <abernethy@dynedge.com>
Cc: postgresql <pgsql-admin@postgresql.org>
Subject: Re: Encrypted Passwords
Date: Fri, 10 Jan 2003 16:10:18 -0500 (EST)
Message-ID: <200301102110.h0ALAJP09820@candle.pha.pa.us> (raw)
In-Reply-To: <20030110144927.M51502@dynedge.com>

Rob Abernethy IV wrote:
> 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

What did you use as salt?  PostgreSQL users the user name as salt.
When I run /contrib/pgcrypto's MD5 I get the same value as PostgreSQL.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (7+ messages)  latest in thread

Message-ID: <200301102110.h0ALAJP09820@candle.pha.pa.us>
Permalink:  ../200301102110.h0ALAJP09820@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200301102110.h0ALAJP09820@candle.pha.pa.us

 · 

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-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, abernethy@dynedge.com
  Subject: Re: Encrypted Passwords
  In-Reply-To: <200301102110.h0ALAJP09820@candle.pha.pa.us>
  References: <20030110144927.M51502@dynedge.com> <200301102110.h0ALAJP09820@candle.pha.pa.us>

* 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