From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: Re: how to use org-crypt with different key per file or node? Date: Fri, 27 Apr 2018 14:27:12 +0200 Message-ID: <87po2kdecf.fsf@len.workgroup> References: <87muxqm53g.fsf@len.workgroup> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fC2TE-0005v2-LK for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 08:27:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fC2T9-0004Uq-Oa for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 08:27:24 -0400 Received: from mout.gmx.net ([212.227.17.20]:45543) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fC2T9-0004U9-Df for emacs-orgmode@gnu.org; Fri, 27 Apr 2018 08:27:19 -0400 Received: from len.workgroup ([46.94.156.122]) by mail.gmx.com (mrgmx101 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LpObx-1eiBIf462X-00fAjs for ; Fri, 27 Apr 2018 14:27:17 +0200 In-Reply-To: <87muxqm53g.fsf@len.workgroup> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-doc-org-manual.org-Document-CRYPTKEY-property.patch >From be08948c331118e2c66b858dc3133d3e44bfff69 Mon Sep 17 00:00:00 2001 From: Gregor Zattler 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 --=-=-= Content-Type: text/plain * Gregor Zattler [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 -- -... --- .-. . -.. ..--.. ...-.- --=-=-=--