Re: MD5 salt

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: MD5 salt
Дата
Msg-id 18153.1054223282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: MD5 salt  ("M. Bastin" <marcbastin@mindspring.com>)
Ответы Re: MD5 salt  (Joe Conway <mail@joeconway.com>)
Список pgsql-novice
"M. Bastin" <marcbastin@mindspring.com> writes:
>> Looks right to me.  Do you have the MD5 algorithm correct?

> I'm using the one provided with my development tool.  Is there some
> way I could calculate a MD5 digest with a known good tool and compare
> it with my result?

Well, you could compute just MD5(Password + User) and compare that to
what's stored in pg_shadow.  Another possibility is to add some
debugging printouts to libpq and see what it computes (look at
pg_password_sendauth() in src/interfaces/libpq/fe-auth.c).

It could be something silly like including trailing nulls into what's
processed by MD5 --- I'm pretty sure you should *not* do that, for
either password or user name.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: "M. Bastin"
Дата:
Сообщение: Re: MD5 salt
Следующее
От: "Chad Thompson"
Дата:
Сообщение: Rumblings of 7.4