gnupg to encrypt files in a batch processes

Jonas Bofjall jonas@gazonk.org
Sat Mar 23 18:32:01 2002


On 20 Mar 2002, Helmut Waitzmann wrote:
 > put the PASSPHRASE into a file, for example
 > /usr/local/BatchMail/passphrase, and then use the command
 > gpg -s -e -o - --batch --yes --passphrase-fd 0 -r

If you wish to avoid the file, I would suggest something along:

$ cat << EOF | gpg --passphrase-fd-0 [...]
ThisIsTheSecretPassphrase
EOF

this way, the pipe would probably(?) never make it to disk.