16 Aug 2015 11:35:42 UTC
- Distribution: Crypt-OpenPGP
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (23)
- Testers (1371 / 769 / 2)
- KwaliteeBus factor: 0
- 82.04% Coverage
- License: perl_5
- Download (100.71KB)
- MetaCPAN Explorer
- Subscribe to distribution
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- This version
- Latest version
- AUTHOR & COPYRIGHTS
Crypt::OpenPGP::Message - Sequence of PGP packets
use Crypt::OpenPGP::Message; my $data; $data .= $_ while <STDIN>; my $msg = Crypt::OpenPGP::Message->new( Data => $data ); my @pieces = $msg->pieces;
Crypt::OpenPGP::Message provides a container for a sequence of PGP packets. It transparently handles ASCII-armoured messages, as well as cleartext signatures.
Constructs a new Crypt::OpenPGP::Message object, presumably to be filled with some data, where the data is a serialized stream of PGP packets.
Reads the packets into in-memory packet objects.
Returns the new Message object on success,
%arg can contain:
A scalar string containing the serialized packets.
This argument is optional, but either this argument or Filename must be provided.
The path to a file that contains a serialized stream of packets.
This argument is optional, but either this argument or Data must be provided.
By default Crypt::OpenPGP::Message will attempt to unarmour ASCII-armoured text. Since the armoured text can actually appear anywhere in a string, as long as it starts at the beginning of a line, this can cause problems when a stream of packets happens to include armoured text. At those times you want the packets to be treated as a stream, not as a string that happens to contain armoured text.
In this case, set IsPacketStream to a true value, and the ASCII armour detection will be skipped.
Returns an array containing packet objects. For example, if the packet stream contains a public key packet, a user ID packet, and a signature packet, the array will contain three objects: a Crypt::OpenPGP::Certificate object; a Crypt::OpenPGP::UserID object; and a Crypt::OpenPGP::Signature object, in that order.
Please see the Crypt::OpenPGP manpage for author, copyright, and license information.
Module Install Instructions
To install Crypt::OpenPGP, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Crypt::OpenPGP
For more information on module installation, please visit the detailed CPAN module installation guide.
|s||Focus search bar|
|?||Bring up this help dialog|
|g p||Go to pull requests|
|g i||go to github issues (only if github is preferred repository)|
|g a||Go to author|
|g c||Go to changes|
|g i||Go to issues|
|g d||Go to dist|
|g r||Go to repository/SCM|
|g s||Go to source|
|g b||Go to file browse|