Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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?

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://958889]
help
Chatterbox?
[LanX]:  last hour of cb doesn't break
[LanX]: 12345678901234- 123456789012345678 901234567890123456 789012345678901234 567890123456789012 345678901234567890 123456789012345678 901234567890123456 789012345678901234 567890123456789012 345678901234567890 123456789012345678 901234567890123456 789012345678901234 567890

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (10)
As of 2017-07-24 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (351 votes). Check out past polls.