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
450 stars 43 forks source link

Allow specifying which key or passphrase to use to decrypt #118

Closed samtuke closed 7 months ago

samtuke commented 8 months ago

When I try to open a GPG CLI encrypted file in GpgFrontend, no key or passphrase is requested and decryption always fails. I don't mind whether I use symmetric or asymmetric encryption in my use case, but in either case, GpgFrontend must know what key or passphrase to use. So why doesn't it request it? I don't see a way to specify either of these before attempting decryption in the GUI. Thanks.

saturneric commented 8 months ago

You may not the only person who has this question. When I wrote this function in 2021, I had this question that why gpgme decryption function didn't need me provide the specific key which will the decrypting operation. Finally, I realized that gpg itself would find the exact key for the encrypted texts as well as files, or it will require you to provide the passphrase for symmetric encrypted texts. Therefore, for your question, It appears that you don't have the proper key in your database.