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: Mon, 11 May 2015 17:16:57 +0100 Message-ID: References: <8738388pwp.fsf@lifelogs.com> <87vbfzxh7h.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 1431361038 20513 80.91.229.3 (11 May 2015 16:17:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 May 2015 16:17:18 +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 Mon May 11 18:17:18 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 1YrqOK-0000jT-UC for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2015 18:17:17 +0200 Original-Received: from localhost ([::1]:38664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrqOK-0004Ge-96 for geh-help-gnu-emacs@m.gmane.org; Mon, 11 May 2015 12:17:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33228) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrqO4-0004D5-8M for help-gnu-emacs@gnu.org; Mon, 11 May 2015 12:17:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrqO2-0003Fs-R5 for help-gnu-emacs@gnu.org; Mon, 11 May 2015 12:17:00 -0400 Original-Received: from mail-la0-x234.google.com ([2a00:1450:4010:c03::234]:34372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrqO2-0003Fk-Jl for help-gnu-emacs@gnu.org; Mon, 11 May 2015 12:16:58 -0400 Original-Received: by laat2 with SMTP id t2so96932114laa.1 for ; Mon, 11 May 2015 09:16:57 -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=BVO5DW80Z/uRztNpQWw7/4xfXjK81kfnVuPX5c4L9vI=; b=DDxMnP2UI+miU7cOtVGMPnKWJlYihlVKxd6A4nGqS2IVOY2UGaC/mW8WXB3yV4bl5F 5tUfwj6dv3VCDrvImnPppVdXOZ1s/MB3PADLph7i/sYn/14eFy/XofDNejt5zQDrIiJ4 btKrmCg/xdxn8YiCCTH2Jjxm8yjoitp/V9TOC6ukEOxT5/Tp7Xx05w21xTIX1wo1Almo DlTYhsOrwu5kP6Y/TUZs7yIe/oSHsH0yEYEMV17XpdQHg2CIUk54q5kbF6RP0ske+Akr aXJngIyOnbeK8Lr6yd6IdDnkOrywJMiLT6VYj5GgyDY3CjvuK1bH2dKWfcQb5zcCG+qy YdSg== X-Received: by 10.152.87.204 with SMTP id ba12mr8794222lab.35.1431361017746; Mon, 11 May 2015 09:16:57 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Mon, 11 May 2015 09:16:57 -0700 (PDT) In-Reply-To: <87vbfzxh7h.fsf@lifelogs.com> X-Google-Sender-Auth: P8gxXx7Y730b95XUNguMaLM5vvI X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::234 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:104387 Archived-At: 2015-05-11 16:32 GMT+01:00 Ted Zlatanov : > On Sat, 9 May 2015 17:40:04 +0100 Artur Malabarba wrote: > > AM> Actually, I may have spoke too soon. > AM> On Ubuntu this does nothing. > > What's "this"? What did you do to set up the test, then what did > actually happen, and finally what did you expect? "this" is doing (setq epa-file-cache-passphrase-for-symmetric-encryption t) and then opening a file with symmetric encryption. The regular behavior is to get a password prompt every time I open and two prompts every time I save. The variable didn't change that. I was expecting it to somehow reduce the number of prompts. Now I understand though, that it doesn't work for recent Gnupg, so I think that's why. > AM> And on Arch linux this works for opening the file but not for saving > AM> (I only get prompted the first time that I open, but still get > AM> prompted twice every time I save). > > AM> Is this because different backends are being used on each system? Is > AM> there a configuration variable I can use to force a backend? > > You're probably using GnuPG 2.x on Arch, which doesn't currently > allow caching the symmetric passphrase. Please check. Yes, version 2.1. I should have read the docstring before my last message.