BUU has asked for the wisdom of the Perl Monks concerning the following question:
Unfortunately this results in no data being placed in $data, I assume because I didn't specify a 'Recipients' field to the encrypt method. Reading the documentation for encrypt tells me that Recipients should take one of an 8-digit hex key id, a 16 digit hex key id, or a user id. My problem is, I have no idea what to pass here. Is this a value I should be retrieving from the file some how? Is there a way to get it from the file? If not, where should I get it?use Crypt::OpenPGP; my $keyring = Crypt::OpenPGP::KeyRing->new( Filename => "foo.asc" ); my $pgp = Crypt::OpenPGP->new( PubRing => $keyring ); my $data = $pgp->encrypt( Filename => $filename );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Crypt::OpenPGP, encrypting messages using a public key file
by edoc (Chaplain) on Jan 12, 2006 at 02:44 UTC | |
|
Re: Crypt::OpenPGP, encrypting messages using a public key file
by hv (Prior) on Jan 12, 2006 at 09:58 UTC |