Passphrase as parameter in the command line

Stefan Bellon sbellon@sbellon.de
Fri Jan 4 18:43:01 2002


"ritter, horst (EDS CH)" <horst.ritter-eds@eds.com> wrote:

> I have been looking for weeks for a solution to the following problem.

... but neither on this mailing list nor in the archives nor with
Google:

http://www.google.com/search?q=gpg+passphrase+argument

and then the first link.

> How can I give gpg the passphrase as parameter in the commandline to
> decrypt files, instead to type it in after GPG's request?

echo "my_secret_passphrase" | gpg --passphrase-fd 0 --foo --bar

Greetings,

Stefan.

-- 
 Stefan Bellon * <mailto:sbellon@sbellon.de> * <http://www.sbellon.de/>
 PGP 2 and OpenPGP keys available from my home page

 WOMAN.ZIP - Great program but no documentation.