-- PGP Armor
--
select armor('');
- armor
----------------------------------------------------------------
+ armor
+-----------------------------
-----BEGIN PGP MESSAGE-----
-
-=twTO
------END PGP MESSAGE-----
-
+
+ =twTO
+ -----END PGP MESSAGE-----
+
(1 row)
select armor('test');
- armor
-------------------------------------------------------------------------
+ armor
+-----------------------------
-----BEGIN PGP MESSAGE-----
-
-dGVzdA==
-=+G7Q
------END PGP MESSAGE-----
-
+
+ dGVzdA==
+ =+G7Q
+ -----END PGP MESSAGE-----
+
(1 row)
select dearmor(armor(''));
dearmor
---------
-
+
(1 row)
select dearmor(armor('zooka'));
dearmor
---------
- zooka
+ zooka
(1 row)
select armor('0123456789abcdef0123456789abcdef0123456789abcdef
0123456789abcdef0123456789abcdef0123456789abcdef');
- armor
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- -----BEGIN PGP MESSAGE-----
-
-MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWYwMTIzNDU2Nzg5YWJjZGVmCjAxMjM0NTY3
-ODlhYmNkZWYwMTIzNDU2Nzg5YWJjZGVmMDEyMzQ1Njc4OWFiY2RlZg==
-=JFw5
------END PGP MESSAGE-----
-
+ armor
+------------------------------------------------------------------------------
+ -----BEGIN PGP MESSAGE-----
+
+ MDEyMzQ1Njc4OWFiY2RlZjAxMjM0NTY3ODlhYmNkZWYwMTIzNDU2Nzg5YWJjZGVmCjAxMjM0NTY3
+ ODlhYmNkZWYwMTIzNDU2Nzg5YWJjZGVmMDEyMzQ1Njc4OWFiY2RlZg==
+ =JFw5
+ -----END PGP MESSAGE-----
+
(1 row)
-- lots formatting
-----END PGP MESSAGE-----');
dearmor
---------
- zooka
+ zooka
(1 row)
-- lots messages
');
dearmor
---------
- right
+ right
(1 row)
-- bad crc