ryran / pyrite

OpenSSL/GnuPG encryption/signing gui for Linux implemented with Python & PyGTK
73 stars 14 forks source link

gpg decription failed : No secret Key #10

Closed Ibrahim-Keyrouz closed 11 years ago

Ibrahim-Keyrouz commented 11 years ago

Screenshot from 2013-04-19 16:09:53 Dear ryran , First of all thanks for this wonderful software

Secondly , I got an attached file (.zip.gpg) from a friend and after I've found your software I opened this file by clicking the "Input file For Direct Operation" then I entered the passphrase and hit the Decrypt but the decryption finished with an error

gpg decription failed : No secret Key (As shown in the attached image)

Can you please tell me why !!!

NB: My friend told me the passphrase to enter it

ryran commented 11 years ago

Hi there! Take a look at the output in the task status in the right.

gpg: encrypted with ELG key, ID 2CBEA527
gpg: decryption failed: No secret key

What this tells us is that your friend encrypted this file with some public key -- i.e., asymmetric encryption. You won't be able to decrypt the file unless you have the corresponding (2CBEA527) private key. Unless you previously generated a key and gave them the public half, they likely encrypted it to themselves. The password they gave you is likely the password to unlock and use their own private key (whoops!) so... at this point their options are:

  1. Re-encrypt the file using a public key YOU generate (use the gui seahorse app or gpg --gen-key)
  2. Re-encrypt the file using gpg --symmetric (or shorter: gpg -c) which will allow simply specifying a passphrase. This could also be done with pyrite -- it's the mode pyrite runs in by default (see the "Symmetric" check box at the top of the screen).

Let me know if you have any more questions!

ryran commented 11 years ago

Hello again FedoraLinuxer. Did my answer resolve all your issues?

ryran commented 11 years ago

It's been 3 months, so I'm going to assume my answer cleared things up for you. Feel free to re-open if you need to.