saturneric / GpgFrontend

A free, open-source, robust yet user-friendly, compact and cross-platform tool for OpenPGP encryption. It stands out as an exceptional GUI frontend for the modern GnuPG (gpg).
https://gpgfrontend.bktus.com
GNU General Public License v3.0
473 stars 46 forks source link

Decrypting a PGP Message #48

Closed KDropZ closed 2 years ago

KDropZ commented 2 years ago

For testing purposes I created a test PGP-Pair(machine A). Exported the public key and imported it in gpgfrontend on a vm(machine B). I encrypted a simple Text on machine A to plain text and not saved into a file, but when I try to decrypt the text on machine B I'm getting the error "No secret key". Which ofcourse is correct as I just imported the senders public key. How is the right procedure for this without sending my private key?

saturneric commented 2 years ago

Thank you for your support! You should use the public key for encryption, and then decryption must use the private key. So, when you decrypt a cipher text, if no private key exists, it will say "no secret key". The correct procedure is this: you distribute your public key and keep your private key locally for decryption.