From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.help Subject: Re: Saving gpg password on the file itself Date: Thu, 7 May 2015 17:09:10 +0100 Message-ID: References: <8738388pwp.fsf@lifelogs.com> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1431014977 23597 80.91.229.3 (7 May 2015 16:09:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2015 16:09:37 +0000 (UTC) Cc: help-gnu-emacs To: Ted Zlatanov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 07 18:09:37 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YqOMj-0004tg-0D for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2015 18:09:37 +0200 Original-Received: from localhost ([::1]:52003 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqOMi-0001hS-4Y for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2015 12:09:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38687) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqOMS-0001gt-Va for help-gnu-emacs@gnu.org; Thu, 07 May 2015 12:09:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YqOMN-0000DC-DJ for help-gnu-emacs@gnu.org; Thu, 07 May 2015 12:09:20 -0400 Original-Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]:35572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YqOMN-0000CU-2P for help-gnu-emacs@gnu.org; Thu, 07 May 2015 12:09:15 -0400 Original-Received: by lbbuc2 with SMTP id uc2so34582757lbb.2 for ; Thu, 07 May 2015 09:09:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=7eROUf4OLrtfRjhzoNl9WiESF4hUcsK4IwPv8krCcXM=; b=oNF9l5VwLrZ6ZSMDGQ7TqUdwhZmkyXZRY/hj4kdEWKrzo4uxyMz81F9WRbMlTjZUjs VC2RnC5CVQmZ6osWYB1omJ0YC904qYAiSSrBKBoS4ZC8YMLzb8Jv4sa+AnwO78mGnloo hLFLvD8Q83TGG5axQAUQYIK2wPbRD+KeUbZQ3k50Ol12JGVsf/fuLtCg5g0OgmbV0HM+ M2UURyYH+zm5cx9McAMVTwZdY2YleAujReDbL/9tVF8ltlo7REYmGWeccnAsw/pT800H KvRtVfLKukShP2HpfirqSpMNvaPkLuVbdsjY1HcY5CeZ0aFnrFzeM4bGO57jZEEOxvOp 4ivg== X-Received: by 10.152.2.227 with SMTP id 3mr3601513lax.73.1431014950639; Thu, 07 May 2015 09:09:10 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Thu, 7 May 2015 09:09:10 -0700 (PDT) In-Reply-To: <8738388pwp.fsf@lifelogs.com> X-Google-Sender-Auth: S2gN1EasbjavOdFUd8jKKGZvWB8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104277 Archived-At: Thanks Ted and Michael. Works great! 2015-05-07 14:42 GMT+01:00 Ted Zlatanov : > On Thu, 7 May 2015 10:26:43 +0100 Artur Malabarba wrote: > > AM> I don't want to setup a whole encryption keychain (or whatever that > AM> stuff is called) on my system, I'm fine with typing the password once > AM> when I open the file. The only thing that bothers me, is typing it > AM> twice every time I save. > > It's simple: look at > `epa-file-cache-passphrase-for-symmetric-encryption'. I use it in many > situations where the GnuPG agent is not available. Just don't select a > key when you initially encrypt the .gpg file and EPA will know you mean > to use symmetric encryption. Then you enter the passphrase once and > Emacs remembers it for the whole session. > > Ted > > Documentation: > If non-nil, cache passphrase for symmetric encryption. > > For security reasons, this option is turned off by default and > not recommended to use. Instead, consider using gpg-agent which > does the same job in a safer way. See Info node `(epa) Caching > Passphrases' for more information. > > Note that this option has no effect if you use GnuPG 2.0. >