From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo de Moraes Serpa Subject: Auto-encrypting/decrypting the whole org file with EasyPG Date: Sun, 17 Aug 2014 14:15:19 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0149406041e7bd0500d813d9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ5vG-0004yR-Mt for emacs-orgmode@gnu.org; Sun, 17 Aug 2014 15:15:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJ5vF-0002sv-53 for emacs-orgmode@gnu.org; Sun, 17 Aug 2014 15:15:22 -0400 Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:58903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ5vE-0002so-Rz for emacs-orgmode@gnu.org; Sun, 17 Aug 2014 15:15:21 -0400 Received: by mail-lb0-f177.google.com with SMTP id s7so3355091lbd.8 for ; Sun, 17 Aug 2014 12:15:19 -0700 (PDT) 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: Org Mode --089e0149406041e7bd0500d813d9 Content-Type: text/plain; charset=UTF-8 Hi everyone, I currently use org-crypt successfully to encrypt the contents of an org-mode entries. For some files though, it's more practical to just encrypt the whole file, and I followed the instructions here: http://orgmode.org/worg/org-tutorials/encrypting-files.html, but could not get it to work. I've placed the org meta-data in a comment as the first line of the org file, like this # -*- mode: org -*- -*- epa-file-encrypt-to: ("my@gpgkeyemail.address") -*- I'm loading org-epa and enabling like this: (require 'epa-file) (epa-file-enable) And I made sure it was loaded by evaluating epa-file-enable. However, when I save the file, it doesn't encrypt it. I've cat'ed the file after saving it and it still shows the original unencrypted content. Am I missing something? Do I need to use a .gpg extension? Version information: * GNU Emacs 24.3.1 (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51) of 2014-04-03 on Yukikaze.local * Org-mode version 8.2.5 (release_8.2.5 @ /Users/user/.emacs.d/vendor/org-mode/lisp/) * OSX Mavericks Thanks in advance, -- Marcelo --089e0149406041e7bd0500d813d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi everyone,

I currently use org-crypt = successfully to encrypt the contents of an org-mode entries. For some files= though, it's more practical to just encrypt the whole file, and I foll= owed the instructions here:=C2=A0http://orgmode.org/worg/org-tutorials/encrypt= ing-files.html, but could not get it to work.

I've placed the org meta-data in a comment as the f= irst line of the org file, like this

# -*- mo= de: org -*- -*- epa-file-encrypt-to: ("my@gpgkeyemail.address") -= *-

I'm loading org-epa and enabling like this:

(require 'epa-file)
(epa-file-en= able)

And I made sure it was loaded by evalu= ating epa-file-enable. However, when I save the file, it doesn't encryp= t it. I've cat'ed the file after saving it and it still shows the o= riginal unencrypted content. Am I missing something? Do I need to use a .gp= g extension?

Version information:
* GNU Emacs 24.3.1 = (x86_64-apple-darwin11.4.2, Carbon Version 1.6.0 AppKit 1138.51) of 2014-04= -03 on Yukikaze.local
* Org-mode version 8.2.5 (release_8.2.5 @ /= Users/user/.emacs.d/vendor/org-mode/lisp/)
* OSX Mavericks

Thanks in advance,

--
Marcelo



--089e0149406041e7bd0500d813d9-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Philip Chan Subject: Re: Auto-encrypting/decrypting the whole org file with EasyPG Date: Sun, 17 Aug 2014 19:32:24 -0400 Message-ID: <87d2by66bb.fsf@karnak.MagnumOpus.khem> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42891) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ9wN-0007ZS-Pf for emacs-orgmode@gnu.org; Sun, 17 Aug 2014 19:32:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJ9wE-0007Oa-OR for emacs-orgmode@gnu.org; Sun, 17 Aug 2014 19:32:47 -0400 Received: from mail-qg0-x230.google.com ([2607:f8b0:400d:c04::230]:41059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJ9wE-0007OU-JB for emacs-orgmode@gnu.org; Sun, 17 Aug 2014 19:32:38 -0400 Received: by mail-qg0-f48.google.com with SMTP id i50so4024097qgf.35 for ; Sun, 17 Aug 2014 16:32:38 -0700 (PDT) Received: from karnak.MagnumOpus.khem (bas10-toronto01-845462812.dsl.bell.ca. [50.100.189.28]) by mx.google.com with ESMTPSA id k8sm26765126qad.6.2014.08.17.16.32.35 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Aug 2014 16:32:36 -0700 (PDT) In-Reply-To: (Marcelo de Moraes Serpa's message of "Sun, 17 Aug 2014 14:15:19 -0500") 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: Org-mode --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On 17 Aug 2014, celoserpa@gmail.com wrote: It works perfectly for me. > # -*- mode: org -*- -*- epa-file-encrypt-to: > # -*- ("my@gpgkeyemail.address") -*- No need to do that. > I'm loading org-epa and enabling like this: > > (require 'epa-file) > (epa-file-enable) > > And I made sure it was loaded by evaluating epa-file-enable. However, > when I save the file, it doesn't encrypt it. I've cat'ed the file > after saving it and it still shows the original unencrypted > content. Am I missing something? Do I need to use a .gpg extension? Make sure the encrypted file extension is: ,---- | .org.gpg `---- Charles =2D-=20 Dijkstra probably hates me (Linus Torvalds, in kernel/sched.c) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlPxO5IACgkQ3epPyyKbwPaWCwCgt7xihWWjpCQZ1Pk1se63WRGi f2cAoM136R3ztd9Krr6qKBe7ORjvxAVK =DVl7 -----END PGP SIGNATURE----- --=-=-=--