Crypt::OpenPGP::Compressed 1.03

Compressed data packets.
Crypt::OpenPGP::Compressed is a Perl module with compressed data packets.

SYNOPSIS

 use Crypt::OpenPGP::Compressed;

 my $cdata = Crypt::OpenPGP::Compressed->new( Data => $data );
 my $serialized = $cdata->save;

 my $cdata = Crypt::OpenPGP::Compressed->parse($buffer);
 my $data = $cdata->decompress;


Crypt::OpenPGP::Compressed implements compressed data packets, providing both compression and decompression functionality, for all supported compression algorithms (Zlib and ZIP). This class uses Compress::Zlib for all compression/decompression needs for both algorithms: ZIP is simply Zlib with a different setting for the WindowBits parameter.

Decompressing a compressed data packet should always yield a stream of valid PGP packets (which you can then parse using Crypt::OpenPGP::PacketFactory). Similarly, when compressing a packet the input data should be a stream of packets.

last updated on:
September 8th, 2008, 11:30 GMT
price:
FREE!
developed by:
Benjamin Trott
license type:
Perl Artistic License 
category:
ROOT \ System \ Benchmarks

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT