Reading passphrase from an environment variable.

John Mathew jmathew at
Fri Jan 3 00:27:01 CET 2003


Whenever I decrypt or encrypt using GPG it prompts for the passphrase.  I
would like to set the passphrase in a UNIX environment variable and every
time GPG should read from this variable. The idea is to run decryption and
encryption using shell scripts which does not require any prompting.

export passphrase="test"

Suggestions are welcome.


More information about the Gnupg-devel mailing list