* 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
* Re: org-crypt symmetric encryption patch
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
1 sibling, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2010-05-01 11:59 UTC (permalink / raw)
To: Rick Moynihan; +Cc: emacs-orgmode
Hi Rick,
do you need any special setup to et a symmetric cifer?
- Carsten
On Apr 30, 2010, at 1:03 PM, Rick Moynihan wrote:
> 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.
> <0001-Allow-symmetric-encryption-when-org-crypt-key-is-
> no.patch>_______________________________________________
> 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
- Carsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: org-crypt symmetric encryption patch
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
1 sibling, 1 reply; 4+ messages in thread
From: Peter Jones @ 2010-05-07 15:17 UTC (permalink / raw)
To: emacs-orgmode
Rick Moynihan <rick.moynihan@gmail.com> writes:
> I've patched org-crypt to use symmetric encryption. If org-crypt-key
> is nil a symmetric cipher is used.
That seems like a pretty simple change. The documentation for
epg-encrypt-string says:
,----
| If RECIPIENTS is nil, it performs symmetric encryption.
`----
So, I guess this is right. We should probably update the documentation
for org-crypt to say that if you don't set a crypt key it will default
to symmetric encryption.
--
Peter Jones - pmade inc.
303-219-0226 http://pmade.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: org-crypt symmetric encryption patch
2010-05-07 15:17 ` Peter Jones
@ 2010-05-08 5:12 ` Carsten Dominik
0 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2010-05-08 5:12 UTC (permalink / raw)
To: Peter Jones, Rick Moynihan; +Cc: org-mode Mode
On May 7, 2010, at 5:17 PM, Peter Jones wrote:
> Rick Moynihan <rick.moynihan@gmail.com> writes:
>> I've patched org-crypt to use symmetric encryption. If org-crypt-key
>> is nil a symmetric cipher is used.
>
> That seems like a pretty simple change. The documentation for
> epg-encrypt-string says:
>
> ,----
> | If RECIPIENTS is nil, it performs symmetric encryption.
> `----
>
> So, I guess this is right.
OK, I have applied this patch.
> We should probably update the documentation
> for org-crypt to say that if you don't set a crypt key it will default
> to symmetric encryption.
I have changed this i the file header of org-crypt.el. However, this
reminded me hat encryption is no documented in the manual. Would one
of you like to identify location in a manual where this would fit in
and write a short addition to fix this?
Thanks.
- Carsten
^ permalink raw reply [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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.