emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Encrypting org-mode files
@ 2011-01-17  2:59 Marcelo de Moraes Serpa
  2011-01-17 10:37 ` Julien Danjou
  0 siblings, 1 reply; 7+ messages in thread
From: Marcelo de Moraes Serpa @ 2011-01-17  2:59 UTC (permalink / raw)
  To: Org Mode

What is the de-facto way to encrypt using org? I now I can use GnuPG,
but I'd prefer something that integrates better and auto-decrypts when
the agenda is triggered.

Thanks!

Marcelo.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Encrypting org-mode files
  2011-01-17  2:59 Encrypting org-mode files Marcelo de Moraes Serpa
@ 2011-01-17 10:37 ` Julien Danjou
  2011-01-26  1:40   ` Marcelo de Moraes Serpa
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Danjou @ 2011-01-17 10:37 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode


[-- Attachment #1.1: Type: text/plain, Size: 322 bytes --]

On Mon, Jan 17 2011, Marcelo de Moraes Serpa wrote:

> What is the de-facto way to encrypt using org? I now I can use GnuPG,
> but I'd prefer something that integrates better and auto-decrypts when
> the agenda is triggered.

Take a look at `org-crypt' package.

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Encrypting org-mode files
  2011-01-17 10:37 ` Julien Danjou
@ 2011-01-26  1:40   ` Marcelo de Moraes Serpa
  2011-01-26  9:13     ` Julien Danjou
  0 siblings, 1 reply; 7+ messages in thread
From: Marcelo de Moraes Serpa @ 2011-01-26  1:40 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa, Org Mode

Is there a way to use full encryption and still have it integrate
seamlessly with the org agenda?

Thanks,

Marcelo.

On Mon, Jan 17, 2011 at 4:37 AM, Julien Danjou <julien@danjou.info> wrote:
> On Mon, Jan 17 2011, Marcelo de Moraes Serpa wrote:
>
>> What is the de-facto way to encrypt using org? I now I can use GnuPG,
>> but I'd prefer something that integrates better and auto-decrypts when
>> the agenda is triggered.
>
> Take a look at `org-crypt' package.
>
> --
> Julien Danjou
> ❱ http://julien.danjou.info
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Encrypting org-mode files
  2011-01-26  1:40   ` Marcelo de Moraes Serpa
@ 2011-01-26  9:13     ` Julien Danjou
  2011-01-29 21:47       ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Danjou @ 2011-01-26  9:13 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode


[-- Attachment #1.1: Type: text/plain, Size: 411 bytes --]

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.

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Encrypting org-mode files
  2011-01-26  9:13     ` Julien Danjou
@ 2011-01-29 21:47       ` Eric S Fraga
  2011-01-31 20:11         ` Julien Danjou
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2011-01-29 21:47 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode

Julien Danjou <julien@danjou.info> 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)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Encrypting org-mode files
  2011-01-29 21:47       ` Eric S Fraga
@ 2011-01-31 20:11         ` Julien Danjou
  2011-02-01 19:23           ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Julien Danjou @ 2011-01-31 20:11 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: Org Mode, Marcelo de Moraes Serpa


[-- Attachment #1.1: Type: text/plain, Size: 255 bytes --]

On Sat, Jan 29 2011, Eric S Fraga wrote:

> Any suggestions?

% head -1 .gnupg/gpg.conf
use-agent

% cat .gnupg/gpg-agent.conf
default-cache-ttl 28800
max-cache-ttl 43200

That's all I got.

-- 
Julien Danjou
❱ http://julien.danjou.info

[-- Attachment #1.2: Type: application/pgp-signature, Size: 835 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Encrypting org-mode files
  2011-01-31 20:11         ` Julien Danjou
@ 2011-02-01 19:23           ` Eric S Fraga
  0 siblings, 0 replies; 7+ messages in thread
From: Eric S Fraga @ 2011-02-01 19:23 UTC (permalink / raw)
  To: Marcelo de Moraes Serpa; +Cc: Org Mode

Julien Danjou <julien@danjou.info> writes:

> On Sat, Jan 29 2011, Eric S Fraga wrote:
>
>> Any suggestions?
>
> % head -1 .gnupg/gpg.conf
> use-agent
>
> % cat .gnupg/gpg-agent.conf
> default-cache-ttl 28800
> max-cache-ttl 43200
>
> That's all I got.

and I had all of these (well, with slightly different values) and it
didn't work.  However, it works now, without changing anything in the
config files.  I think the problem was that I had more than one instance
of the agent invoked which was confusing things (although it shouldn't
have because the environment variables were pointing to only one
instance).

anyway, it's working.  thanks to all that responded!

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.289.ge236d)

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-01 19:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-17  2:59 Encrypting org-mode files Marcelo de Moraes Serpa
2011-01-17 10:37 ` Julien Danjou
2011-01-26  1:40   ` Marcelo de Moraes Serpa
2011-01-26  9:13     ` Julien Danjou
2011-01-29 21:47       ` Eric S Fraga
2011-01-31 20:11         ` Julien Danjou
2011-02-01 19:23           ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).