pgcrypto: PGP armor headers

Поиск
Список
Период
Сортировка
От Marko Tiikkaja
Тема pgcrypto: PGP armor headers
Дата
Msg-id 53E4CE23.6020007@joh.to
обсуждение исходный текст
Ответы Re: pgcrypto: PGP armor headers  (Marko Tiikkaja <marko@joh.to>)
Список pgsql-hackers
Hi,

Currently there's no way to generate or extract armor headers from the
PGP armored format in pgcrypto.  I've written a patch to add the
support.  For example:

local:marko=#* select armor('zooka', array['Version', 'Comment'],
array['Created by pgcrypto', 'PostgreSQL, the database']);
                armor
-----------------------------------
  -----BEGIN PGP MESSAGE-----      +
  Version: Created by pgcrypto     +
  Comment: PostgreSQL, the database+
                                   +
  em9va2E=                         +
  =D5cR                            +
  -----END PGP MESSAGE-----        +

local:marko=#* select pgp_armor_header(armor('zooka', array['Version',
'Comment'], array['Created by pgcrypto', 'PostgreSQL, the database']),
'Comment');
      pgp_armor_header
--------------------------
  PostgreSQL, the database
(1 row)


.marko

Вложения

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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: A worst case for qsort
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Minmax indexes