How to use Gnupg's passphrase-fd argument?
问题 I would like to use GnuPG´s decrypt command without any user interation. The script's --passphrase-fd argument seems exactly what I need. But I don't know how it works - haven't found examples. Could anyone give me an example of such a command, on both Windows and UNIX environments? (FYI, I'm using GnuPG 2). Thanks already :) 回答1: In order to use the gpg option --passphrase-fd in GnuPG v2, you must specify the --batch parameter. I will first explain how --passphrase-fd works, and then get to