| От | Tom Lane |
|---|---|
| Тема | Re: MD5 Passwords and user administratio |
| Дата | |
| Msg-id | 15243.1044760332@sss.pgh.pa.us обсуждение |
| Ответ на | MD5 Passwords and user administratio (Carlos Ortiz <ortizc2@yahoo.com>) |
| Ответы |
Re: MD5 Passwords and user administratio
|
| Список | pgsql-admin |
Carlos Ortiz <ortizc2@yahoo.com> writes:
> I am trying to figure out exactly how to set someone's password when
> using MD5 passwords in postgres.
ALTER USER joe WITH PASSWORD 'secret';
> What exactly is psotgres passing to the MD5 hash to make up that
> incredible unintelligible stream of characters that it stores in the
> password field of the pg_shadow table?
I think the salt is the username --- but you shouldn't write code that
depends on knowing that. None of the MD5 behavior is considered
user-visible.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера