Re: how to encode/encrypt a string

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: how to encode/encrypt a string
Дата
Msg-id 17834.1096561679@sss.pgh.pa.us
обсуждение исходный текст
Ответ на how to encode/encrypt a string  (Miles Keaton <mileskeaton@gmail.com>)
Список pgsql-general
Miles Keaton <mileskeaton@gmail.com> writes:
> In MySQL, to store a big secret (like a credit card number) in the
> database that I didn't want anyone to be able to see without knowing
> the salt/password value, I would do this into a blob-type field:
> INSERT INTO clients(ccnum) VALUES (ENCODE(''433904123121309319', 'xyzzy'));

There are similar functions in contrib/pgcrypto/, I believe.

            regards, tom lane

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

Предыдущее
От: Miles Keaton
Дата:
Сообщение: how to encode/encrypt a string
Следующее
От: Chris Browne
Дата:
Сообщение: Re: how to encode/encrypt a string