emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-crypt symmetric encryption patch
@ 2010-04-30 11:03 Rick Moynihan
  2010-05-01 11:59 ` Carsten Dominik
  2010-05-07 15:17 ` Peter Jones
  0 siblings, 2 replies; 4+ messages in thread
From: Rick Moynihan @ 2010-04-30 11:03 UTC (permalink / raw)
  To: emacs-orgmode

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

I've patched org-crypt to use symmetric encryption.  If org-crypt-key
is nil a symmetric cipher is used.

The change seems to work locally for me.

R.

[-- Attachment #2: 0001-Allow-symmetric-encryption-when-org-crypt-key-is-no.patch --]
[-- Type: application/octet-stream, Size: 866 bytes --]

From 4f4222c7318f30669438a8d4214891d0075482e2 Mon Sep 17 00:00:00 2001
From: Rick Moynihan <rick@calicojack.co.uk>
Date: Fri, 30 Apr 2010 11:55:05 +0100
Subject: [PATCH] Allow symmetric encryption, when org-crypt-key is not set.

---
 lisp/org-crypt.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/org-crypt.el b/lisp/org-crypt.el
index feab058..f6d9e04 100644
--- a/lisp/org-crypt.el
+++ b/lisp/org-crypt.el
@@ -97,7 +97,7 @@ heading.  This can also be overridden in the CRYPTKEY property."
     (or (org-entry-get nil "CRYPTKEY" 'selective)
         org-crypt-key
         (and (boundp 'epa-file-encrypt-to) epa-file-encrypt-to)
-        (error "No crypt key set"))))
+        (message "No crypt key set, using symmetric encryption."))))
 
 (defun org-encrypt-entry ()
   "Encrypt the content of the current headline."
-- 
1.6.0


[-- Attachment #3: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

end of thread, other threads:[~2010-05-08  5:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-30 11:03 org-crypt symmetric encryption patch Rick Moynihan
2010-05-01 11:59 ` Carsten Dominik
2010-05-07 15:17 ` Peter Jones
2010-05-08  5:12   ` Carsten Dominik

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).