Reading passphrase from an environment variable.

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


Hi,

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.

Eg:
export passphrase="test"

Suggestions are welcome.

Regards,
John





More information about the Gnupg-devel mailing list