gpg - difference --encrypt-to and --recipient

Stefan Claas sac at 300baud.de
Sun Dec 30 22:40:18 CET 2018


On Sun, 30 Dec 2018 18:05:37 +0100, Gernot Pokorny wrote:
Hi,

> What is the difference between --encrypt-to and --recipient and what are
> the advantages and disadvantages of using one over the other, which one
> should you use for encrypting your own files and what does the following
> mean?
> 
> --encrypt-to ... The key specified by name is used only when there are
> other recipients given by the user or by use of the option recipient. ...
> 
> 
> I also posted that question under stackoverflow:
> https://superuser.com/questions/1389024/gpg-difference-encrypt-to-and-recipient/1389030#1389030

Simply said you put encrypt-to, with your key-id, in your gpg.conf and when
you do a gpg --recipient yourfriend it encrypts to your friend and also to
you.

Regards
Stefan




More information about the Gnupg-users mailing list