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: Sat, 9 May 2015 17:40:04 +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 1431189619 8870 80.91.229.3 (9 May 2015 16:40:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 May 2015 16:40:19 +0000 (UTC) Cc: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 09 18:40: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 1Yr7nV-0004BO-T7 for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2015 18:40:18 +0200 Original-Received: from localhost ([::1]:59858 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr7nV-0008F1-0a for geh-help-gnu-emacs@m.gmane.org; Sat, 09 May 2015 12:40:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr7nL-0008Cx-9c for help-gnu-emacs@gnu.org; Sat, 09 May 2015 12:40:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yr7nK-0004YV-4Z for help-gnu-emacs@gnu.org; Sat, 09 May 2015 12:40:07 -0400 Original-Received: from mail-la0-x22e.google.com ([2a00:1450:4010:c03::22e]:32782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yr7nJ-0004Vp-Sb for help-gnu-emacs@gnu.org; Sat, 09 May 2015 12:40:06 -0400 Original-Received: by layy10 with SMTP id y10so70299105lay.0 for ; Sat, 09 May 2015 09:40:05 -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:cc:content-type; bh=ggEWDTk8AU36Q6W5oOGlxsElUkqE74kwti/TJZb6lYo=; b=R5DeP1owPK9cBQiH+TCo9Tsqmc/6zqfidDejfoVJP4XhOrH0IWhSeTjKJI4XmwBspL Th62k1+RavIia/fGpg5eOWuR1Lzsu+n1A0Wvw87Olq+RWbhrAb0z6QTtrcEEHKS+HbkO cpZjAe1u17aw2linDYk9EUlcB1l7Cz9x7FnlDEuYEHbv5PIbF3OieCC8QTFIqXA//8G+ /gHIO5uWAZmkL+mfF12YxHNwnnzyZNJpMyfYxGzadTI3poVVaKvblm+tJswlFzsiV65B IRDI95N/qCRcf8AzPWmVpOLrD5S15dcO/Ix+cNCIy5i0d9PieR8M9n2GydEpD8H3YZEZ bDbg== X-Received: by 10.152.203.233 with SMTP id kt9mr2382607lac.21.1431189604871; Sat, 09 May 2015 09:40:04 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Sat, 9 May 2015 09:40:04 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: -mUJjiqLUzQuWlfTFbLSAW3R62o X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::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:104329 Archived-At: Actually, I may have spoke too soon. On Ubuntu this does nothing. And on Arch linux this works for opening the file but not for saving (I only get prompted the first time that I open, but still get prompted twice every time I save). Is this because different backends are being used on each system? Is there a configuration variable I can use to force a backend? 2015-05-07 17:09 GMT+01:00 Artur Malabarba : > 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. >>