in reply to Decrypting a message with Crypt::OpenPGP
Change the my $PGPEncryptedMessage line to:
It's also better to use single quotes for such texts to avoid accidental expansion. Ok, ` $ @ & might not be valid anyway in PGP messages.my $PGPEncryptedMessage = <<'EOM'; -----BEGIN PGP MESSAGE----- Version: haneWIN JavascriptPG v2.0 hIwDAAAAAAAAAAABA/4oJfsBR88yts6eY22RJDwEFyhxi2KWIJx6BR8fufIDN4j3 H79sCTN3UHDYoCV5zluSyhdSmM8beF1+hQ7PvSsonDOXrGfovIb9/cItQQg1CrgI 63Xje85qWW3IUpebnt4UlPnXx1sxK46GtJIEckYppWbXubCunAdFhhCyiq4ZBqQn Z9EAojfFrI8zkVIC/gq7cMZsu1wgn7/lcUvFewUNWWrU8ykAiC5t=R2eG -----END PGP MESSAGE----- EOM
PS: my $arg; should be my %arg;. Just add
at the very start of you script.use strict; use warnings;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Decrypting a message with Crypt::OpenPGP
by willjones (Sexton) on Apr 24, 2008 at 04:57 UTC | |
by mscharrer (Hermit) on Apr 24, 2008 at 08:43 UTC | |
by willjones (Sexton) on Apr 24, 2008 at 23:16 UTC | |
by Anonymous Monk on Dec 07, 2015 at 02:52 UTC | |
by Anonymous Monk on Mar 30, 2012 at 06:36 UTC | |
by Anonymous Monk on Mar 30, 2012 at 07:02 UTC |