pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: subhash@nmsu.edu
To: pgsql-sql@postgresql.org
Subject: md5 in pg_shadow?
Date: Thu, 12 May 2005 15:01:17 -0600
Message-ID: <1115931677.4283c41db0689@webmail.nmsu.edu> (raw)

Hi,
I was trying to write a function to validate the username and its password in
the pg_shadow table. The function should take in the username and password as
arguments and see if it matches with those in the pg_shadow table. But the md5
hashed password in pg_shadow doesnot match with what i get when i do
select 'md5' || md5('some_password');

Is there a function already present to do this or how can i get the same hashed
password that i get in pg_shadow so i can write my own function?


Please help me out on this.
Thanks,
Subhash.



view thread (2+ messages)  latest in thread

Message-ID: <1115931677.4283c41db0689@webmail.nmsu.edu>
Permalink:  ../1115931677.4283c41db0689@webmail.nmsu.edu/
Also on:    postgresql.org/message-id/1115931677.4283c41db0689@webmail.nmsu.edu

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: subhash@nmsu.edu
  Subject: Re: md5 in pg_shadow?
  In-Reply-To: <1115931677.4283c41db0689@webmail.nmsu.edu>

* 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