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.