[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] how to use org-crypt with different key per file or node?
From: |
Gregor Zattler |
Subject: |
Re: [O] how to use org-crypt with different key per file or node? |
Date: |
Fri, 27 Apr 2018 14:27:12 +0200 |
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.
>From be08948c331118e2c66b858dc3133d3e44bfff69 Mon Sep 17 00:00:00 2001
From: Gregor Zattler <address@hidden>
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
* Gregor Zattler <address@hidden> [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
--
-... --- .-. . -.. ..--.. ...-.-