From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anupam Sengupta Subject: Re: Feature request: Selective encryption Date: Fri, 31 Aug 2007 22:10:19 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRLFm-0006F1-Oa for emacs-orgmode@gnu.org; Sat, 01 Sep 2007 01:10:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRLFl-0006DI-2H for emacs-orgmode@gnu.org; Sat, 01 Sep 2007 01:10:38 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRLFk-0006Cs-Pz for emacs-orgmode@gnu.org; Sat, 01 Sep 2007 01:10:36 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IRLFk-00028G-Di for emacs-orgmode@gnu.org; Sat, 01 Sep 2007 01:10:36 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IRLFh-0005iV-6y for emacs-orgmode@gnu.org; Sat, 01 Sep 2007 07:10:33 +0200 Received: from ip72-222-192-8.ph.ph.cox.net ([72.222.192.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2007 07:10:33 +0200 Received: from anupamsg by ip72-222-192-8.ph.ph.cox.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 01 Sep 2007 07:10:33 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org >>>>> "Austin" == Austin Frank writes: Austin> If you're interested in using GPG to accomplish these goals, I highly Austin> recommend the EasyPG (EPG) package created by Daiki Ueno. At this Austin> point I believe it's mostly used for Gnus, but it's intended to be a Austin> general-purpose GPG interface for Emacs. Austin> http://www.easypg.orghttp://sourceforge.jp/projects/epg I use epg to encrypt the org-mode files. EPG expects the files to have a suffix of .gpg, which conflicts with the .org suffix - however, I circumvent this with a file local mode setting as the first line in my org files: # -*- mode: org; epa-file-encrypt-to: (""); coding: utf-8-unix; -*- This allows the file's major mode to be Org-mode. In addition, the archive files are also encrypted, and hence an over-ride is needed for the file name (otherwise the defaults will conflict): I have ... #+ARCHIVE: ~/org/.org_archive.gpg:: In my active Org files - which works fine for the archival process, and ensures that the archives are also encrypted. The other epg settings you need are: (require 'epa-setup) ;; In your .emacs file and of course the correct SSH settings and the key setup externally. This configuration works great on both OS X and Windows XP (Home and work for me). For Windows, I had to override the epa-gpg-program name to point to the cygwin version: (setq epg-gpg-program "/cygwin/bin/gpg.exe") ;; For Windows. HTH, -- Anupam