unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* epg encrypt non interactive
@ 2022-07-06  2:25 GH
  2022-07-06  3:50 ` Emanuel Berg
  2022-07-06  8:42 ` Jean Louis
  0 siblings, 2 replies; 4+ messages in thread
From: GH @ 2022-07-06  2:25 UTC (permalink / raw)
  To: Help GNU Emacs


I want encrypt a string using GPG (epg/epa)

I think that (epg-encrypt-string) is my function to it:


(epg-encrypt-string CONTEXT PLAIN RECIPIENTS &optional SIGN
ALWAYS-TRUST)

Encrypt a string PLAIN.
If RECIPIENTS is nil, it performs symmetric encryption.


(let ((context (epg-make-context 'OpenPGP)))
  (epg-encrypt-string context "hi" "???"))


I need a key as RECIPIENT not symmetric encryption.

RECIPIENTS can be insert interactively easy, for example using:

(epa-select-keys (epg-make-context epa-protocol) ""
"recipient@example.org")

but not so without `interactive'


how can I do? any funct that return a key?



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-07-07 14:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-06  2:25 epg encrypt non interactive GH
2022-07-06  3:50 ` Emanuel Berg
2022-07-06  8:42 ` Jean Louis
2022-07-07 14:33   ` GH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).