Crypt::OpenPGP::SessionKey is a Perl module with encrypted session key.
SYNOPSIS
use Crypt::OpenPGP::SessionKey;
my $key_data = 'f' x 64; ## Not a very good key :)
my $skey = Crypt::OpenPGP::SessionKey->new(
Key => $public_key,
SymKey => $key_data,
);
my $serialized = $skey->save;
my $skey = Crypt::OpenPGP::SessionKey->parse($buffer);
my($key_data, $alg) = $skey->decrypt($secret_key);
Crypt::OpenPGP::SessionKey implements encrypted session key packets; these packets store public-key-encrypted key data that, when decrypted using the corresponding secret key, can be used to decrypt a block of ciphertext--that is, a Crypt::OpenPGP::Ciphertext object.
Product's homepage
Requirements:
· Perl