md5 in pg_shadow?

From: subhash(at)nmsu(dot)edu
To: pgsql-sql(at)postgresql(dot)org
Subject: md5 in pg_shadow?
Date: 2005-05-12 21:01:17
Message-ID: 1115931677.4283c41db0689@webmail.nmsu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Michael Fuhr 2005-05-12 22:40:18 Re: md5 in pg_shadow?
Previous Message Dennis.Jiang 2005-05-12 19:07:00 Does Postgresql have a similar pseudo-column "ROWNUM" as Oracle?