From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Automatically encrypt on save, decrypt on open? Date: Thu, 13 Aug 2015 10:53:11 -0400 Message-ID: <6sw6c7oaibxmso.fsf@dhcp-6-148.hmco.com> 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]:52367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPtsa-0003hb-3R for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 10:53:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZPtsW-0002lX-KS for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 10:53:15 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZPtsW-0002lR-GJ for emacs-orgmode@gnu.org; Thu, 13 Aug 2015 10:53:12 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id E31EA21D4D for ; Thu, 13 Aug 2015 10:53:11 -0400 (EDT) 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: John Kitchin Cc: emacs-orgmode@gnu.org 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-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