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)))) -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>