Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Marcin Borkowski
On 2015-08-14, at 19:54, Jorge A. Alfaro-Murillo wrote: > Peter Davis writes: > >> 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? > > You could save the

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Jorge A. Alfaro-Murillo
Peter Davis writes: 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? You could save the file as .gpg, and put as its first line # -*- mode: org-mode -*- By the

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Sebastien Vauban
Hello John, >> > Here is the setup I have that worked when I tried it last ;) >> > >> > ;; encryption >> > (require 'epa-file) >> > (unless (memq epa-file-handler file-name-handler-alist) >> > (epa-file-enable)) >> >> Do you remember what are those 2 lines for? > > They are basically copied from

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread John Kitchin
They are basically copied from thetop of http://orgmode.org/worg/org-tutorials/encrypting-files.html The first line loads epa-file (epa-file.el --- the EasyPG Assistant, transparent file encryption ) The second line looks like a way to call epa-file-enable if it hasn't been enabled. You can just

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-14 Thread Sebastien Vauban
Hello John, > Here is the setup I have that worked when I tried it last ;) > > ;; encryption > (require 'epa-file) > (unless (memq epa-file-handler file-name-handler-alist) > (epa-file-enable)) Do you remember what are those 2 lines for? Best regards, Seb -- Sebastien Vauban

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-13 Thread Eric S Fraga
On Thursday, 13 Aug 2015 at 11:47, Peter Davis wrote: > Thanks! This might be the best solution, since it's really just one > file I want to encrypt/decrypt. If you want to encrypt all the contents of a file, this is indeed the best approach, I think. If you only want to encrypt a small part, the

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-13 Thread Peter Davis
Thanks! This might be the best solution, since it's really just one file I want to encrypt/decrypt. -pd Eric S Fraga writes: > 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 decryp

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-13 Thread Eric S Fraga
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

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-13 Thread Michael Strey
On Do, 2015-08-13 at 16: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? Check org-crypt.el (http://orgmode.org/manual/org_002dcrypt_002e

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-13 Thread Peter Davis
Thanks, John! I'll give it a try. -pd John Kitchin writes: > see org-crypt http://orgmode.org/worg/org-tutorials/encrypting-files.html > > Here is the setup I have that worked when I tried it last ;) > > ;; encryption > (require 'epa-file) > (unless (memq epa-file-handler file-name-handler-ali

Re: [O] Automatically encrypt on save, decrypt on open?

2015-08-13 Thread John Kitchin
see org-crypt http://orgmode.org/worg/org-tutorials/encrypting-files.html Here is the setup I have that worked when I tried it last ;) ;; encryption (require 'epa-file) (unless (memq epa-file-handler file-name-handler-alist) (epa-file-enable)) (require 'org-crypt) (org-crypt-use-before-save-ma

[O] Automatically encrypt on save, decrypt on open?

2015-08-13 Thread Peter Davis
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? Thank you, -pd