emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Moynihan <rick.moynihan@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-crypt symmetric encryption patch
Date: Fri, 30 Apr 2010 12:03:12 +0100	[thread overview]
Message-ID: <t2ue85471e31004300403r6083780z88f76edb37faf29d@mail.gmail.com> (raw)

[-- 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

             reply	other threads:[~2010-04-30 11:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 11:03 Rick Moynihan [this message]
2010-05-01 11:59 ` org-crypt symmetric encryption patch Carsten Dominik
2010-05-07 15:17 ` Peter Jones
2010-05-08  5:12   ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=t2ue85471e31004300403r6083780z88f76edb37faf29d@mail.gmail.com \
    --to=rick.moynihan@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).