[Top][All Lists]

[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

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

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, Org release_8.3.1-34-gb911f1

reply via email to

[Prev in Thread] Current Thread [Next in Thread]