Crypt-OpenPGP
view release on metacpan or search on metacpan
lib/Crypt/OpenPGP/Armour.pm view on Meta::CPAN
my $armoured = Crypt::OpenPGP::Armour->armour(
Data => "foo bar baz",
Object => "FOO OBJECT",
Headers => {
Version => '0.57',
Comment => 'FooBar',
},
);
my $decoded = Crypt::OpenPGP::Armour->unarmour( $armoured ) or
die Crypt::OpenPGP::Armour->errstr;
=head1 DESCRIPTION
This module converts arbitrary-length strings of binary octets into
Base64-encoded ASCII messages suitable for transfer as text. It
also converts in the opposite direction, taking an armoured message
and returning the binary data, along with headers.
=head1 USAGE
( run in 0.246 second using v1.01-cache-2.11-cpan-26ccb49234f )