Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Need help decoding string in Crypt::OpenPGP

by jaf0faj (Novice)
on Mar 17, 2012 at 15:53 UTC ( [id://960178]=note: print w/replies, xml ) Need Help??


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

Update: Curtis Leach had a similar issue in 2009 and sought help on the internet, with no response to his issue. It is the similar to here. As he pointed out, and I confirmed on my machine, there are four possible combinations here and one of the four fails (unfortunately, it is the critical one for my situation and Curtis').

  1. Encrypt with gpg and decrypt with gpg.
    Works fine, as expected
  2. Encrypt with perl using Crypt::OpenPGP and decrypt with gpg.
    Works fine.
  3. Encrypt with perl using Crypt::OpenPGP and decrypt with perl using Crypt::OpenPGP
    Works fine.
  4. Encrypt with gpg and decrypt with perl using Crypt::OpenPGP
    Failure with "Symkey decrypt failed: Invalid secret key ID" message. This is the situation described above

In fact, for the last combination in my case, the file was encrypted by javascript on another machine. However, if I generated an encrypted file with gpg the same error arises.

  • Comment on Re: Need help decoding string in Crypt::OpenPGP

Replies are listed 'Best First'.
Re^2: Need help decoding string in Crypt::OpenPGP
by Anonymous Monk on Jul 24, 2012 at 20:30 UTC
    I'm having the same issue...Any solution?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-20 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found