all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jim Gomi <gomi@mailup.net>
To: help-gnu-emacs@gnu.org
Subject: Re: caching of passphrases for symmetrically encrypted files
Date: Tue, 18 Oct 2016 08:13:27 -0500	[thread overview]
Message-ID: <1476796407.3072.66.camel@mailup.net> (raw)
In-Reply-To: <83funvzf5a.fsf@gnu.org>

On Mon, 2016-10-17 at 09:02 +0300, Eli Zaretskii wrote:
> See
>   https://lists.gnu.org/archive/html/emacs-devel/2014-11/msg00421.html
> 
> for how to do this with GnuPG 2.x.

Thank you for this information.
Following those instructions I added this to the 
(custom-set-variables   ... ) section in .emacs :

'(epg-gpg-program "gpg2")
'(epa-pinentry-mode (quote loopback))

There is no need to alter ~/.gnupg/gpg-agent.conf
because allow-loopback-pinentry is the default.

But still I am prompted twice for the passphrase when I save a
symmetrically encrypted file.


> AFAIU, you are customizing epg-gpg-program incorrectly.  See
> bug#24229:
>   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24229

Thank you for this useful reference.
To make this work I had to add this to the (custom-set-variables   ... ) 
section in .emacs :
 '(epg-gpg-program "gpg")
 '(epa-file-cache-passphrase-for-symmetric-encryption t)

This worked, but I would never have realized that from reading the
current documentation.

Where do I go to make suggestions about improving the documentation?








  reply	other threads:[~2016-10-18 13:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-16 22:48 caching of passphrases for symmetrically encrypted files Jim Gomi
2016-10-17  6:02 ` Eli Zaretskii
2016-10-18 13:13   ` Jim Gomi [this message]
2016-10-18 14:41     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1476796407.3072.66.camel@mailup.net \
    --to=gomi@mailup.net \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.