Encrypt to a key without importing it to keyring

Seby seby2kt14 at gmail.com
Wed Nov 22 20:32:25 CET 2017


I need to pass it via batch or something... Like this:
$pgp_public_key = 'pgp public key text armored'
 gpg -e -r $pgp_public_key --always_trust

Basically use gnupg without a keyring or trustdb. And the pass the armored
pgp public key with each command and operation.

Thank you in advance.

On Nov 22, 2017 12:16, "Seby" <seby2kt14 at gmail.com> wrote:

> Hello,
>
> Is there any possibility i could encrypt some text to a public key but
> without importing it to my keyring? Passing it to gnupg via command line or
> something (i do know and accept that if i want to encrypt multiple messages
> or files to the same key i will have to provide it every time) .
>
> Sebastian
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20171122/54c5394a/attachment.html>


More information about the Gnupg-users mailing list