From: Gregor Zattler <telegraph@gmx.net>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: how to use org-crypt with different key per file or node?
Date: Fri, 27 Apr 2018 14:27:12 +0200 [thread overview]
Message-ID: <87po2kdecf.fsf@len.workgroup> (raw)
In-Reply-To: <87muxqm53g.fsf@len.workgroup>
[-- Attachment #1: Type: text/plain, Size: 183 bytes --]
Hi org-mode users and developers,
Marco Wahl helped me with this: As always the solution is
already there in org-mode. Attached you find a patch in
order to document this feature.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-doc-org-manual.org-Document-CRYPTKEY-property.patch --]
[-- Type: text/x-diff, Size: 983 bytes --]
From be08948c331118e2c66b858dc3133d3e44bfff69 Mon Sep 17 00:00:00 2001
From: Gregor Zattler <telegraph@gmx.net>
Date: Fri, 27 Apr 2018 14:17:05 +0200
Subject: [PATCH] doc/org-manual.org: Document CRYPTKEY property
TINYCHANGE
---
doc/org-manual.org | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/doc/org-manual.org b/doc/org-manual.org
index e670c387f..76f061709 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -19180,6 +19180,16 @@ Here is a suggestion for Org Crypt settings in Emacs init file:
;; # -*- buffer-auto-save-file-name: nil; -*-
#+end_src
+It's possible to use different keys for different headings by
+specifying the respective key as property CRYPTKEY, e.g.:
+
+#+begin_src emacs-lisp
+ * totally secret :crypt:
+ :PROPERTIES:
+ :CRYPTKEY: 0x0123456789012345678901234567890123456789
+ :END:
+#+end_src
+
Excluding the =crypt= tag from inheritance prevents already encrypted
text from being encrypted again.
--
2.11.0
[-- Attachment #3: Type: text/plain, Size: 421 bytes --]
* Gregor Zattler <telegraph@gmx.net> [2018-04-26; 16:09]:
> I use org-crypt for different org files. Till now I follow the
> documentation and specify the one and only key to use via
> (setq org-crypt-key "0xdeadbeef") for all org files and their
> headings.
>
> Is it possible to specify different keys for different files or
> even better for different headings?
Ciao; Gregor
--
-... --- .-. . -.. ..--.. ...-.-
next prev parent reply other threads:[~2018-04-27 12:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-26 14:09 how to use org-crypt with different key per file or node? Gregor Zattler
2018-04-26 15:31 ` Marco Wahl
2018-04-27 12:27 ` Gregor Zattler [this message]
2018-04-27 13:13 ` Nicolas Goaziou
2018-04-27 13:30 ` Gregor Zattler
2018-04-27 13:49 ` Bastien
2018-04-27 14:15 ` Nicolas Goaziou
2018-05-05 6:28 ` stardiviner
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=87po2kdecf.fsf@len.workgroup \
--to=telegraph@gmx.net \
--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).