emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Auto-encrypting/decrypting the whole org file with EasyPG
@ 2014-08-17 19:15 Marcelo de Moraes Serpa
  2014-08-17 23:32 ` Charles Philip Chan
  0 siblings, 1 reply; 2+ messages in thread
From: Marcelo de Moraes Serpa @ 2014-08-17 19:15 UTC (permalink / raw)
  To: Org Mode

[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1579 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Auto-encrypting/decrypting the whole org file with EasyPG
  2014-08-17 19:15 Auto-encrypting/decrypting the whole org file with EasyPG Marcelo de Moraes Serpa
@ 2014-08-17 23:32 ` Charles Philip Chan
  0 siblings, 0 replies; 2+ messages in thread
From: Charles Philip Chan @ 2014-08-17 23:32 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 719 bytes --]

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

-- 
Dijkstra probably hates me
(Linus Torvalds, in kernel/sched.c)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-17 23:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-17 19:15 Auto-encrypting/decrypting the whole org file with EasyPG Marcelo de Moraes Serpa
2014-08-17 23:32 ` Charles Philip Chan

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).