gnupg to encrypt files in a batch processes
Florian Weimer
Weimer@CERT.Uni-Stuttgart.DE
Sun Mar 24 10:35:01 2002
Jonas Bofjall <jonas@gazonk.org> writes:
> 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.
I'm sorry, but bash use temporary files to implement here documents
(like any other shell, I think).
--
Florian Weimer Weimer@CERT.Uni-Stuttgart.DE
University of Stuttgart http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT +49-711-685-5973/fax +49-711-685-5898