pgcrypto: PGP armor headers

From: Marko Tiikkaja <marko(at)joh(dot)to>
To: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: pgcrypto: PGP armor headers
Date: 2014-08-08 13:18:27
Message-ID: 53E4CE23.6020007@joh.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
pgcrypto_armor_headers.v1.patch text/plain 24.7 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2014-08-08 13:21:49 Re: Minmax indexes
Previous Message Robert Haas 2014-08-08 12:54:31 Re: A worst case for qsort