Flag to pass the passphrase dynamically while decrypting...

Francis Litterio franl@world.std.com
Thu Sep 26 14:38:02 2002


"Michael H. Warfield" <mhw@wittsend.com> writes:

> On Wed, Sep 25, 2002 at 04:38:23PM -0700, Loo, Peter wrote:

>> Does anyone know how I can go about decrypting a file dynamically
>> without getting prompted for a passphrase?

> 	echo "xoxoxoxoxoxo" | gpg --passphrase-fd 0 ...

Or, if you use a recent version of Bash as your shell:

	gpg --passphrase-fd 6 ... 6<<<"xoxoxoxoxoxoxo"

This is nice because it leaves standard input available for reading the
plaintext or ciphertext.
--
Francis Litterio
franl@world.std.com
http://world.std.com/~franl/
GPG and PGP public keys available on keyservers.