all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Peter Davis <pfd@pfdstudio.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Automatically encrypt on save, decrypt on open?
Date: Thu, 13 Aug 2015 16:34:48 +0100	[thread overview]
Message-ID: <87614jfbhj.fsf@ucl.ac.uk> (raw)
In-Reply-To: <6sw6c7vbcjxnxv.fsf@dhcp-6-148.hmco.com> (Peter Davis's message of "Thu, 13 Aug 2015 10:28:28 -0400")

On Thursday, 13 Aug 2015 at 10:28, Peter Davis wrote:
> I'd like to store information in an org page that gets automatically
> encrypted when I save it, and decrypted when I open it. Is
> there some built-in functionality or hooks for this?

An alternative to using org's own encryption facility, as others have
suggested, is to encrypt the file as a whole and let emacs worry about
it.

If you create an encrypted file (say using gnupg on the command line)
with the following first line:

# -*- mode: org; epa-file-encrypt-to: ("your key name/email"); version-control: nil; -*-

then opening the file will start it up in org mode and will encrypt on
saving.

I prefer this in some cases although I do also use org's capabilities
for some sections in a file.
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-34-gb911f1

  parent reply	other threads:[~2015-08-13 15:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-13 14:28 Automatically encrypt on save, decrypt on open? Peter Davis
2015-08-13 14:46 ` John Kitchin
2015-08-13 14:53   ` Peter Davis
2015-08-14  8:01   ` Sebastien Vauban
2015-08-14 10:48     ` John Kitchin
2015-08-14 12:45       ` Sebastien Vauban
2015-08-13 14:53 ` Michael Strey
2015-08-13 15:34 ` Eric S Fraga [this message]
2015-08-13 15:47   ` Peter Davis
2015-08-13 16:09     ` Eric S Fraga
2015-08-14 17:54 ` Jorge A. Alfaro-Murillo
2015-08-14 19:11   ` Marcin Borkowski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87614jfbhj.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=pfd@pfdstudio.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.