From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Encrypting org-mode files Date: Sat, 29 Jan 2011 21:47:41 +0000 Message-ID: <87r5bv5qma.fsf@ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=42822 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PjIe8-0007mv-2s for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 16:47:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PjIe6-0004Nr-Vp for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 16:47:51 -0500 Received: from vscane-a2.ucl.ac.uk ([144.82.108.42]:35172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PjIe6-0004NN-Ri for emacs-orgmode@gnu.org; Sat, 29 Jan 2011 16:47:50 -0500 In-Reply-To: (Julien Danjou's message of "Wed, 26 Jan 2011 10:13:26 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcelo de Moraes Serpa Cc: Org Mode Julien Danjou writes: > On Wed, Jan 26 2011, Marcelo de Moraes Serpa wrote: > >> Is there a way to use full encryption and still have it integrate >> seamlessly with the org agenda? > > Create a file named myfile.org.gpg, and EPA should kicks in and store it > crypted. Then just add this file to the list of org-agenda-files. EPA > will ask your passphrase to decrypt in on opening. I've been using org.gpg files for a while for encrypting information and everything works just fine. However, trying to add such a file to my org-agenda-files list means I end up having to type in my passphrase quite often. I know that EPA will allow caching of passphrases but this is discouraged for security reasons. Instead, one is advised to use gnupg-agent. Does anybody have any experience with gnupg-agent? It's working, in that I get prompted for my passphrase and the files are decrypted (or encrypted, as the case may be) but my passphrase is not cached. I have configured my ~/.gnupg/gpg-agent.conf file with: --8<---------------cut here---------------start------------->8--- debug-level advanced default-cache-ttl 14400 log-file /home/ucecesf/tmp/gpg-agent-log max-cache-ttl 14400 pinentry-program /usr/bin/pinentry --8<---------------cut here---------------end--------------->8--- and it does seem to be used (debugging is enabled and so is the log file). However, still not caching. Any suggestions? Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.4 (release_7.4.259.ge612d.dirty)