Re: Storing the password in .pgpass file in an encrypted format

Поиск
Список
Период
Сортировка
От Christian Kruse
Тема Re: Storing the password in .pgpass file in an encrypted format
Дата
Msg-id 20140221142851.GA16533@defunct.ch
обсуждение исходный текст
Ответ на Re: Storing the password in .pgpass file in an encrypted format  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
Hi,

On 21/02/14 11:15, Alvaro Herrera wrote:
> Maybe you can memfrob() the password to encrypt it before writing, and
> then memfrob() it back before applying it.  Would that be secure?

From `man memfrob`:
Note that this function is not a proper encryption routine as the XORconstant is fixed, and is only suitable for hiding
strings.

No, it is not secure. And I agree, encrypting .pgpass doesn't make
sense. Either you have a known key and then encryption is useless or
you have to provide a key at runtime and then .pgpass is useless.

Best regards,

-- Christian Kruse               http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Storing the password in .pgpass file in an encrypted format
Следующее
От: Euler Taveira
Дата:
Сообщение: Re: Storing the password in .pgpass file in an encrypted format