I used Emacs to encrypt a text file with a symmetric key. When decrypting the file, the program pinentry opens a window for password entry. I accidentally clicked the checkbox for "save in password manager" and then the enter key (no password). Apparently the empty password was stored and now I'm not anymore prompted for a password when opening the file. Instead I get the following error message:
gpg: AES encrypted data
gpg: gcry_kdf_derive failed: Invalid data
gpg: encrypted with 1 passphrase
gpg: decryption failed: No secret key
I get this message when opening the file in Emacs but also when I use gpg2 -d the_file.gpg
.
How can I remove the empty password and restore the password prompt?
Things that I already tried (unsuccessfully):
- reboot,
- kill gpg-agent,
- kill gnome-keyring-daemon,
- remove the key using seahorse (didn't work because seahorse didn't list the key)
I'm using Xubuntu 16.04.
--no-use-agent
flag? Maybe add a few-v
too, it's not clear what users / keys / passphrases are used. – Xen2050 Jul 6 '16 at 1:04--no-use-agent
is obsolete and has no effect. When I add-v
, I get the exact same output as without it. – tmalsburg Jul 6 '16 at 2:11--no-use-agent
is obsolete and doesn't do anything. – tmalsburg Jul 7 '16 at 5:19