| От | Michael Fuhr |
|---|---|
| Тема | Re: md5 in pg_shadow? |
| Дата | |
| Msg-id | 20050512224017.GA55711@winnie.fuhr.org обсуждение исходный текст |
| Ответ на | md5 in pg_shadow? (subhash@nmsu.edu) |
| Список | pgsql-sql |
On Thu, May 12, 2005 at 03:01:17PM -0600, subhash@nmsu.edu wrote:
>
> 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');
Try this:
SELECT 'md5' || md5('some_password' || 'some_user');
--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера