Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: Decrypting a message with Crypt::OpenPGP

by willjones (Sexton)
on Apr 24, 2008 at 23:16 UTC ( #682736=note: print w/replies, xml ) Need Help??


in reply to Re^3: Decrypting a message with Crypt::OpenPGP
in thread Decrypting a message with Crypt::OpenPGP

Thanks for your help... I finally got this worked out. One thing I had forgotten was the Passphrase.
my $message = $pgp->decrypt(Data => $PGPEncryptedMessage, Passphrase => "secret_passphrase") or die "Error: ".$pgp->errstr;

The other thing was that I had accidentally encrypted the original message with the wrong keyID.

I found the software here useful in generating some keys to encode/decode with. http://www.pgpi.org/products/pgp/versions/freeware/dos/2.6.3i/

It allows you to specify your passphrase when you generate.

Replies are listed 'Best First'.
Re^5: Decrypting a message with Crypt::OpenPGP
by Anonymous Monk on Dec 07, 2015 at 02:52 UTC
    Can you please share, your full solution? I have read all the post and did the changes recommended above but I still get Can't find secret key to decrypt message. Any help will be appreciated. Thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://682736]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2020-04-10 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The most amusing oxymoron is:
















    Results (49 votes). Check out past polls.

    Notices?