From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: Automatically encrypt on save, decrypt on open? Date: Thu, 13 Aug 2015 10:46:54 -0400 Message-ID: References: <6sw6c7vbcjxnxv.fsf@dhcp-6-148.hmco.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPtmZ-0000gv-Kh for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 10:47:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPtmS-0008Dv-Tk for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 10:47:03 -0400 Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]:36693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPtmS-0008Dp-Pb for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 10:46:56 -0400 Received: by qgdd90 with SMTP id d90so32397546qgd.3 for ; Thu, 13 Aug 2015 07:46:56 -0700 (PDT) In-reply-to: <6sw6c7vbcjxnxv.fsf@dhcp-6-148.hmco.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Peter Davis Cc: emacs-orgmode@gnu.org 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-magic) (setq org-tags-exclude-from-inheritance (quote ("crypt"))) ;; GPG key to use for encryption ;; Either the Key ID or set to nil to use symmetric encryption. (setq org-crypt-key "some-key") 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? > > Thank you, > -pd -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu