Emacs encrypts/decrypts .gpg
files automatically. But recently I have lost the ability to decrypt files encrypted by the Linux gpg
tool and vice versa.
I use:
- passphrase symmetric encryption
- gnupg 1.4.11
- emacs 24.0.92.1
- Debian sid
Decrypting using gpg
(encrypted by emacs) gives:
gpg: decryption failed: bad key
Decrypting using emacs (encrypted by gpg) gives:
epa-file--find-file-not-found-function: Opening input file: Decryption failed,
Any idea how to avoid this?
Best Answer
You might be missing a suitable pinentry program and unfortunately Emacs' output is less than helpful.
On a RedHat system your might want try installing the
pinentry-gtk
package and see if everything works.