Discussion:
[O] how to use org-crypt with different key per file or node?
Gregor Zattler
2018-04-26 14:09:55 UTC
Permalink
Dear org-mode users and developers,

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
--
-... --- .-. . -.. ..--.. ...-.-
Marco Wahl
2018-04-26 15:31:21 UTC
Permalink
Post by Gregor Zattler
Dear org-mode users and developers,
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
AFAICT there is property CRYPTKEY for that. Possibly this has been
forgotten in the info documentation for org.

Example:

* totally secret :crypt:
:PROPERTIES:
:CRYPTKEY: 0x0123456789012345678901234567890123456789
:END:


HTH
Gregor Zattler
2018-04-27 12:27:12 UTC
Permalink
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.
Nicolas Goaziou
2018-04-27 13:13:47 UTC
Permalink
Hello,
Post by Gregor Zattler
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.
Thank you.
Post by Gregor Zattler
+It's possible to use different keys for different headings by
I used =CRYPTKEY= instead of CRYPTKEY, as it is meant to be written in
an Org document.
Post by Gregor Zattler
+#+begin_src emacs-lisp
There was a missing comma in front of the headline.

I applied your patch with the changes above.

Regards,
--
Nicolas Goaziou
Gregor Zattler
2018-04-27 13:30:44 UTC
Permalink
Hi Nicolas, org-mode users,
Post by Nicolas Goaziou
Post by Gregor Zattler
+It's possible to use different keys for different headings by
I used =CRYPTKEY= instead of CRYPTKEY, as it is meant to be written in
an Org document.
sorry
Post by Nicolas Goaziou
Post by Gregor Zattler
+#+begin_src emacs-lisp
There was a missing comma in front of the headline.
Indentation is not enough!? Is there a document describing how
to contribute to org-manual.org?


Ciao; Gregor
--
-... --- .-. . -.. ..--.. ...-.-
Bastien
2018-04-27 13:49:20 UTC
Permalink
Post by Gregor Zattler
+#+begin_src emacs-lisp
PS: I guess this should have been "#+begin_src org" instead.
--
Bastien
Nicolas Goaziou
2018-04-27 14:15:04 UTC
Permalink
Post by Bastien
Post by Gregor Zattler
+#+begin_src emacs-lisp
PS: I guess this should have been "#+begin_src org" instead.
Actually, we settled on "#+begin_example" instead, because of
fontification issues.

Fixed. Thank you.
stardiviner
2018-05-05 06:28:08 UTC
Permalink
Can let this property CRYPTKEY support interactive select keys from minibuffer?

Manully input is not an good choice obviously.

How to let org-mode property auto prompt for a list of keys after
inserted property key "CRYPTKEY"?

--
[ stardiviner ] don't need to convince with trends.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

Loading...