[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Automatically encrypt on save, decrypt on open?
From: |
Eric S Fraga |
Subject: |
Re: [O] Automatically encrypt on save, decrypt on open? |
Date: |
Thu, 13 Aug 2015 16:34:48 +0100 |
User-agent: |
Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) |
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
- [O] Automatically encrypt on save, decrypt on open?, Peter Davis, 2015/08/13
- Re: [O] Automatically encrypt on save, decrypt on open?, John Kitchin, 2015/08/13
- Re: [O] Automatically encrypt on save, decrypt on open?, Michael Strey, 2015/08/13
- Re: [O] Automatically encrypt on save, decrypt on open?,
Eric S Fraga <=
- Re: [O] Automatically encrypt on save, decrypt on open?, Jorge A. Alfaro-Murillo, 2015/08/14