PASSWORD vs. md5('somepass')

From: Alexander Reichstadt <lxr(at)mac(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: PASSWORD vs. md5('somepass')
Date: 2012-03-20 15:28:30
Message-ID: 76DAC5AD-C0C7-423E-A70C-E7147607104A@mac.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I look for a way to reproduce the encrypted string stored as a password by means other than using the CREATE ROLE command.

When using CREATE ROLE........PASSWORD 'somepass' the resulting string for rolpassword in pg_authid always starts with md5, suggesting it would create some md5 string. So I thought to use SELECT md5('somepass') to get the same.

But the two strings differ. Is there a function that does that outside the create role context?

Thanks
Alex

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Josh Kupershmidt 2012-03-20 15:55:56 Re: PASSWORD vs. md5('somepass')
Previous Message Sam Loy 2012-03-20 14:22:07 Is it even possible?