Function: org-crypt-key-for-heading

org-crypt-key-for-heading is a byte-compiled function defined in org-crypt.el.gz.

Signature

(org-crypt-key-for-heading)

Documentation

Return the encryption key(s) for the current heading.

Assume epg-context is set.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-crypt.el.gz
(defun org-crypt-key-for-heading ()
  "Return the encryption key(s) for the current heading.
Assume `epg-context' is set."
  (and org-crypt-key
       (or (epg-list-keys epg-context
			  (pcase (org-entry-get nil "CRYPTKEY" 'selective 'literal-nil)
                            ("nil" "")
                            (key (or key org-crypt-key ""))))
	   (bound-and-true-p epa-file-encrypt-to)
	   (progn
	     (message "No crypt key set, using symmetric encryption.")
	     nil))))