Silk Road forums

Discussion => Security => Topic started by: thereefers245 on February 26, 2013, 03:57 am

Title: GNU privacy guard decrypt error
Post by: thereefers245 on February 26, 2013, 03:57 am
I keep getting an annoying error when I try to decrypt a message. I've only got it for this message and its with a key that made it successfully into my keychain. I'll copy and paste it verbatim to show you it's formatted correctly:

-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.19 (MingW32)

hQEMAwpVKPuNxdhmAQgAhyjg6troHLSvGp4RALTRMQEyeJZDK3PkJFsygl8lzmJz
mCHxJAhcAeMDUa8flRLO0dfuUxZt3LDLYI5hIe8lvA/8tO2XEeYhwyD83WlhiyAm
5K5t3+iiMwdGBu+/Qf5P4b0LvT1a6M7lJVmuM6hcrWQrnc++4I05TVjguBAcoObK
m6k71vVZ+E8yrycFEZPzF1jp7i3PC+EKHplOsaqADmV9s6SePZdgTvtTaeQWn4YR
Ll2vn8IyWE8XW6vH2HTY316c3Zfdqg+7TQQSxGYKr6SghnsbkCTNdYF13DkLflgk
DcZ9dG0R1pLhjnHwPnkvpzgXhd50Xvy8bc6T90T8wdLBFQGtG/D4xyLigMo9Z2hX
+EyVYn5m9TWtO5VHQCn6R9YXtSgzn1EtUqWf9DonghA8ZwW7sqC9v1cTTP1JFYYk
0V/jyeC4V0UPlgf/zoKlUq6hRKV718kbarmaXTTamGLGPI11fhCBIGQZNLpgVqb4
3tp8UNKGEyyhUVC4HX++FT78x4YhhYKnW4zQItjSoD2fmUmW7g1B4ovQ7HW4T4Ln
MYk7cXK2nQj8gtTGMzr1mh3fRAs1S9Q+MU+JSpsP1VQPhxalEyzuxWjcSJuvolSK
YS7IjIUygLzjlGwbaz+U1W4MMyeNJs1NrAejia3ry2XpiUBJ0Mxq6GVIKFDVvME2
jBaAwYJHk5J8rF6hi8Pn1gv1jqLaAvqOwJpjBxpDWDDuGNBDT57I/99LG2SrgRDs
gGgFws+QK6ZKNeXP6sSSi/ekXZK+pqAV0fJMY0CfLIMWG93ioiEjx1lF190AGgr3
AMApDJr34w2VlL62cRTVWFX4qj6UwtUGn8gdj6Z4oRTPd9FX1BCm7sCvHU/UeYay
UN1J/9z9DkaCRlZTsPZQIXn0JXUS+mb1dV7EXiCoiS4qchsKx0R1/kcfUAmIWjyd
1t4UxKMyjTfrcEEODcd0NcTQzc0OHXU=
=0IlZ
-----END PGP MESSAGE-----

error I get is:

gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: Unknown system error

I'm using gnu privacy guard for Mac OS X Snow Leopard 10.6.8

Tell me if I need to give any more info or where to look. After googling the error report and finding conflicting info I looked on some random blog and it said it could be related to how the message is encoded and I need to use a hex editor to change it?

Any help or should I be looking some specific place?
Title: Re: GNU privacy guard decrypt error
Post by: SelfSovereignty on February 26, 2013, 04:05 am
Well that sucks.  I've heard bad things about that program before.  Try GPG4USB, I think it's got a Mac version...?  Maybe, anyway?  lol...

Just FYI, it also SOUNDS like you're trying to decrypt a message using a public key or something.  I don't know what else you'd mean by "that made it into my keychain."  You don't import private keys (usually, anyway).  You generate them.  That could be your problem, but it's still a fucking lame error message either way.
Title: Re: GNU privacy guard decrypt error
Post by: thereefers245 on February 26, 2013, 04:12 am
I'm trying to decrypt a message using a valid public key from someone else
Title: Re: GNU privacy guard decrypt error
Post by: SelfSovereignty on February 26, 2013, 04:19 am
Yeah, that can't be done.  That's the basic mathematics at work: the public key is used to ENcrypt, not DEcrypt.  To DEcrypt, you need the corresponding private key that was generated at the same time as the public key.  They get generated in pairs, and using a public key to encrypt a message means only that paired private key can decrypt it.  I mean short of cracking or something.  That's how it's supposed to work, anyway :)
Title: Re: GNU privacy guard decrypt error
Post by: thereefers245 on February 26, 2013, 04:22 am
Wait I probably phrased that incorrectly, I haven't even specified which user to decrypt the message with yet, it says there isn't any openpgp data at all in the message
Title: Re: GNU privacy guard decrypt error
Post by: SelfSovereignty on February 26, 2013, 04:25 am
Like I said, it's a rubbish error message.  Here's what it's supposed to be telling you:
Quote from: gpg
encrypted with RSA key, ID 8DC5D866
gpg: decryption failed: secret key not available
Title: Re: GNU privacy guard decrypt error
Post by: Nightcrawler on February 27, 2013, 02:13 am
Wait I probably phrased that incorrectly, I haven't even specified which user to decrypt the message with yet, it says there isn't any openpgp data at all in the message

You don't get to specify which user to decrypt it for. The message is either encrypted to one of your keys, or it is not. If Key-ID: 0X8DC5D866 does not belong to you, then you simply CANNOT decrypt that message, PERIOD.

NC
Title: Re: GNU privacy guard decrypt error
Post by: camomug on February 27, 2013, 02:38 am
I had a vendor who had the same error when trying to decrypt my message.  Did I incorrectly encrypt the message? (Even though my last 5 transactions I used the same method)
I'm not sure what would cause this error to show up
Title: Re: GNU privacy guard decrypt error
Post by: onetwothree on February 27, 2013, 03:04 am
I don't think it's getting to the point where it's trying to decrypt anything. It's saying it's not even finding any opengpg data at all.

OP, the message as pasted works for me (I mean, I can't decrypt it of course, but it's being read as a valid PGP message). When I've seen your issue in the past, it's because the input is not parsing newlines correctly. How are you importing or otherwise providing the message to your program? If you paste the message to a text editor and save that file and try to load it from the file, does that change anything?