Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

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]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2018-06-23 07:35 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.