Crypt::OpenPGP::SKSessionKey

Symmetric-Key Encrypted Session Key.
Download

Crypt::OpenPGP::SKSessionKey Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Benjamin Trott
  • Publisher web site:
  • http://search.cpan.org/~btrott/

Crypt::OpenPGP::SKSessionKey Tags


Crypt::OpenPGP::SKSessionKey Description

Symmetric-Key Encrypted Session Key. Crypt::OpenPGP::SKSessionKey is a Perl module with a symmetric-key encrypted session key.SYNOPSIS use Crypt::OpenPGP::SKSessionKey; my $key_data = 'f' x 64; ## Not a very good key :) my $skey = Crypt::OpenPGP::SessionKey->new( Passphrase => $passphrase, SymKey => $key_data, ); my $serialized = $skey->save; my $skey = Crypt::OpenPGP::SKSessionKey->parse($buffer); my($key_data, $alg) = $skey->decrypt($passphrase);Crypt::OpenPGP::SKSessionKey implements symmetric-key encrypted session key packets; these packets store symmetric-key-encrypted key data that, when decrypted using the proper passphrase, can be used to decrypt a block of ciphertext--that is, a Crypt::OpenPGP::Ciphertext object.Symmetric-key encrypted session key packets can work in two different ways: in one scenario the passphrase you provide is used to encrypt a randomly chosen string of key material; the key material is the key that is actually used to encrypt the data packet, and the passphrase just serves to encrypt the key material. This encrypted key material is then serialized into the symmetric-key encrypted session key packet.The other method of using this encryption form is to use the passphrase directly to encrypt the data packet. In this scenario the need for any additional key material goes away, because all the receiver needs is the same passphrase that you have entered to encrypt the data.At the moment Crypt::OpenPGP really only supports the first scenario; note also that the interface to new may change in the future when support for the second scenario is added. Requirements: · Perl


Crypt::OpenPGP::SKSessionKey Related Software