Re: Storing passwords

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Storing passwords
Дата
Msg-id Pine.LNX.4.44.0312012130570.23890-100000@peter.localdomain
обсуждение исходный текст
Ответ на Storing passwords  (Oleg Lebedev <oleg.lebedev@waterford.org>)
Список pgsql-general
Oleg Lebedev writes:

> My application needs to store user names and passwords in the database
> via JDBC connection. What is the right way to do this?

One table, one column for the name, one column for the password.

> What should be the database type of the password column?

text or bytea, depending on how you encrypt it.

> How do I encrypt the password before sending it to the database?

Check out contrib/pgcrypto.

> What other database settings need to be enabled for this to work?

None.

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: grant not working on pg_class
Следующее
От: merlyn@stonehenge.com (Randal L. Schwartz)
Дата:
Сообщение: Re: Good open source mailing list system PHP / Postgresql