pgcrypto: PGP armor headers - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject pgcrypto: PGP armor headers
Date
Msg-id 53E4CE23.6020007@joh.to
Whole thread Raw
Responses Re: pgcrypto: PGP armor headers
List 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

Attachment

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: A worst case for qsort
Next
From: Heikki Linnakangas
Date:
Subject: Re: Minmax indexes