Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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?


Comment on Re: Need help decoding string in Crypt::OpenPGP
Select or Download Code
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2014-11-26 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (163 votes), past polls