Hi Ihor, * Ihor Radchenko <yanta...@posteo.net> wrote: > Karl Voit <devn...@karl-voit.at> writes: > >>> What is the return value of >>> >>> (epg-list-keys (epg-make-context nil t t) org-crypt-key) >>> >>> ? >>> >>> Does it show the right key? >> >> It shows: >> >> (#s(epg-key ultimate >> (#s(epg-sub-key ultimate ... nil 1 4096 "ABC12345" 1515327255 >> nil "AAAAAAAA...ABC12345") >> #s(epg-sub-key ultimate ... nil 1 4096 "FFFFFFF" 1515327255 >> nil "FFFF.FFFFFFFF")) >> (#s(epg-user-id ultimate "Karl Voit (Internal key for orgmode) >> <abc12...@karl-voit.at>" nil)))) >> >> ... with ABC12345 being the correct key for org-crypt and FFFFFFF being my >> default OpenPGP key. > > Ok. What about > > (let ((context (epg-make-context nil t t))) > (epg-decrypt-string context (epg-encrypt-string context "test" > (epg-list-keys context org-crypt-key)))) >
It asks me for the passphrase of the orgmode key (the correct one) and prints out "test". -- get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode: > get Memacs from https://github.com/novoid/Memacs < Personal Information Management > http://Karl-Voit.at/tags/pim/ Emacs-related > http://Karl-Voit.at/tags/emacs/