Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Need help decoding string in Crypt::OpenPGP

by BrowserUk (Pope)
on Mar 10, 2012 at 17:47 UTC ( #958889=note: print w/replies, xml ) Need Help??

in reply to Need help decoding string in Crypt::OpenPGP

Have you checked your logs? This looks wrong:

my ($plaintext,$valid,$sig)=$pgp->decrypt(Data => $phrase, Passphrase ++=> "abc123!");

You should have seen:

%s = ( Passphrase +=> 'abc123!' );; [syntax error at (eval 9) line 1, near "+=>"

There is weirdness in the next line also: $sig<br>err +or: ".

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: Need help decoding string in Crypt::OpenPGP
by Eliya (Vicar) on Mar 10, 2012 at 17:58 UTC

    Looks like the "+"s are just the result of having cut-n-pasted the code from the original anonymous post, in which it was correct...

      Eliya is correct, that was a cut and paste error from the original anonymous post. Sorry about that. It should have read:

      Passphrase => ...

      I tidied up the original message

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958889]
[LanX]: AnomalousMonk: yeah the asteroid but not the god, right?
[jedikaiti]: :-)
[AnomalousMonk]: LanX: Of course the asteroid! There is/are no god(s).
erix suddenly wants to hear My Sweet Lord once more

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (17)
As of 2017-11-22 17:17 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (327 votes). Check out past polls.