<div dir="ltr">But isn't the documentation wrong for the edge-case when you specify --encryp-to within gpg.conf and do not specify a recipient? According to that documentation when you only specify --encrypt-to, but no --recipient, then the value of --encrypt-to should also not be used and that means we would have no valid command and that there should be an error, which is not the case in the gpg implementation. The gpg that I have running simply takes the name from encrypt-to as a recipient, which makes sense, but is not in sync with the documentation.<br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 31, 2018 at 7:57 AM Dirk Gottschalk via Gnupg-users <<a href="mailto:gnupg-users@gnupg.org">gnupg-users@gnupg.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello.<br>
<br>
Am Sonntag, den 30.12.2018, 22:40 +0100 schrieb Stefan Claas:<br>
> On Sun, 30 Dec 2018 18:05:37 +0100, Gernot Pokorny wrote:<br>
> Hi,<br>
> <br>
> > What is the difference between --encrypt-to and --recipient and<br>
> > what are the advantages and disadvantages of using one over the<br>
> > other, which one should you use for encrypting your own files and<br>
> > what does the following mean?<br>
<br>
> > --encrypt-to ... The key specified by name is used only when there<br>
> > are other recipients given by the user or by use of the option<br>
> > recipient. ...<br>
<br>
> Simply said you put encrypt-to, with your key-id, in your gpg.conf<br>
> and when you do a gpg --recipient yourfriend it encrypts to your<br>
> friend and also to you.<br>
<br>
Yes, that's correct. Anyways, I prefer using the --hidden-recipient for<br>
this purpose. That prevents the disclosure of the communication paths<br>
with pure GPG-Packet analysis.<br>
<br>
Regards,<br>
Dirk<br>
<br>
-- <br>
Dirk Gottschalk<br>
Paulusstrasse 6-8<br>
52064 Aachen, Germany<br>
<br>
GPG: DDCB AF8E 0132 AA54 20ABĀ B864 4081 0B18 1ED8 E838<br>
Keybase.io: <a href="https://keybase.io/dgottschalk" rel="noreferrer" target="_blank">https://keybase.io/dgottschalk</a><br>
GitHub: <a href="https://github.com/Dirk1980ac" rel="noreferrer" target="_blank">https://github.com/Dirk1980ac</a><br>
<br>
_______________________________________________<br>
Gnupg-users mailing list<br>
<a href="mailto:Gnupg-users@gnupg.org" target="_blank">Gnupg-users@gnupg.org</a><br>
<a href="http://lists.gnupg.org/mailman/listinfo/gnupg-users" rel="noreferrer" target="_blank">http://lists.gnupg.org/mailman/listinfo/gnupg-users</a><br>
</blockquote></div>