help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: caching of passphrases for symmetrically encrypted files


From: Eli Zaretskii
Subject: Re: caching of passphrases for symmetrically encrypted files
Date: Mon, 17 Oct 2016 09:02:57 +0300

> From: Jim Gomi <address@hidden>
> Date: Sun, 16 Oct 2016 17:48:45 -0500
> 
> 
> Since I upgraded to emacs 25.1.1 under Fedora 24, the caching of
> passphrases for symmetrically encrypted files  has stopped working.
> 
> According to the documentation, 
> https://www.gnu.org/software/emacs/manual/html_mono/epa.html#Caching-Pa
> ssphrases
> I can either use GnuPG 1.4, or configure gpg-agent. But I cannot get
> either of these to work.
> 
> 1) Using GnuPG 2.1.13
> I tried adding this to ~/.gnupg/gpg-agent.conf:
> 
> allow-emacs-pinentry
> 
> but I am still asked to retype the passphrase twice when saving the
> file.
> Is there something else I should do?

See

  https://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00421.html

for how to do this with GnuPG 2.x.

> 2) Using GnuPG 1.4 
> I tried adding this to my .emacs file:
> 
> (setq epg-gpg-program "/usr/bin/gpg")
> (setenv "GPG_AGENT_INFO" nil)
> (setq epa-file-cache-passphrase-for-symmetric-encryption t)
> 
> but it had no effect.
> /usr/bin/gpg is the GnuPG 1.4 executable.

AFAIU, you are customizing epg-gpg-program incorrectly.  See
bug#24229:

  https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24229



reply via email to

[Prev in Thread] Current Thread [Next in Thread]