Hot answers tagged

26 votes
Accepted

Enabling minibuffer pinentry with Emacs 25 and GnuPG 2.1 on Ubuntu Xenial

You also have to Explicitely enable loopback mode for pinentry in your gpg-agent.conf. Configure epa to use loopback for pinentry. Start the pinentry server in emacs, 1. Enable Emacs pinentry and ...
user avatar
20 votes

Unable to decrypt .gpg file using emacs but command line gpg works

You do not say which OS nor version of emacs you have. I solved yesterday exactly the same problem in OSX and emacs 25.1 using information from this link: http://colinxy.github.io/software-...
user avatar
  • 2,813
16 votes
Accepted

How to type the password of a .gpg file only when opening it

Encryption using password + key This does not save the password directly in the file but does something similar without any security risk and helps you achieve what you want. You need to use ...
user avatar
  • 24.3k
15 votes

How to type the password of a .gpg file only when opening it

Turns out all I had to do was (setq epa-file-cache-passphrase-for-symmetric-encryption t) This solution works on both Linux and Windows, and is a courtesy of Ted and Michael over at help-gnu-emacs.
user avatar
  • 22.4k
6 votes
Accepted

EPA (EasyPG Assistant): How to encrypt for *two* of my own keys? OR How are key-ids used to select keys

# -*- mode:org; epa-file-encrypt-to: ("arthur@ul___dt.com" "foo@bar.baz") -*- When a mail address is associated to several keys switch to the key ids. E.g. a call to epa-file-...
user avatar
  • 2,646
5 votes

How to get gpg-agent to cache the passphrases I enter when reading/saving *.gpg files?

https://www.gnupg.org/documentation/manuals/gnupg/Agent-Options.html#Agent-Options In this documentation, the options you might be interested in default-cache-ttl n, Set the time a cache entry is ...
user avatar
  • 760
3 votes
Accepted

Cache symmetric encryption passphrase for a session or some amount of time

I cannot comment on Emacs 24, but here's how I solved this for Emacs 25: By default epa in Emacs 25 uses gpg2 (GnuPG 2.x). According to the Epa manual, caching with gpg2 requires gpg-agent. For some ...
user avatar
2 votes
Accepted

Emacs opens gpg file without asking for passphrase

How can you be sure that GNOME is not caching the passphrase? If you are starting emacs in non-terminal mode, and if it is not asking for passphrase, you must have checked the option for "...
user avatar
  • 486
1 vote

Emacs not prompting for password when opening gpg file

For gpg version < 2, caching can be from emacs or the gpg-agent To disable caching from emacs, set epa-file-cache-passphrase-for-symmetric-encryption to nil if it is not nil in emacs config file (...
user avatar
  • 760
1 vote

Can I convince EPA encrypt for an expired key

Set the time on your computer to last year ? I guess any year after 1970 can be set , though individual hardware, software, interfaces would add restrictions.
user avatar
  • 571
1 vote

Enabling minibuffer pinentry with Emacs 25 and GnuPG 2.1 on Ubuntu Xenial

For setups with GnuPG >= 2.1, pinentry package is not needed anymore. Quote from the Emacs News.26 file: ** The pinentry.el library has been removed. That package (and the corresponding change in ...
user avatar
  • 399
1 vote

Cache symmetric encryption passphrase for a session or some amount of time

To prevent EPG from prompting for a key every time you save a file, put the following at the top of your file: -*- epa-file-encrypt-to: ("your@email.address") -*-
user avatar
  • 914
1 vote
Accepted

Why does viewing PGP encrypted PDF fail?

When you open a encrypted file, Emacs automatically replaces the contents of it's buffer with a decrypted version of it. Though doc-view, and for that matter pdf-view as well, does not care for the ...
user avatar
  • 3,276
1 vote
Accepted

How do I use epa-sign-file and not disrupt functionality of the file with the ASCII-armored signature

Not really an Emacs related problem but, one of the solution could be: create a SUM of your .org file, then create an encrypted signature of the SUM file, named SUM.sign, and finally, share the 3 ...
user avatar
  • 6,081

Only top scored, non community-wiki answers of a minimum length are eligible