How to bypass the passphrase prompt when runing gpg decrypt command in a script?

Steve Butler sbutler@fchn.com
Fri Aug 16 16:59:01 2002


Thought sure it would be the FAQ by now.  Seems to be asked every day.

1. Decide whether you want to hard code the passphrase someplace on your
hard drive (as in the script or in a file the script can read); or,

2. Remove the pass phrase from your secret key.

If the later, remove it and be done.  If the former, then you will need to
do something on the order of:

cat my_pass_phrase_file | gpg --batch --notty --homedir $homedir
--passphrase-fd 0 --output my_text_file --decrypt my_encrypted_file



-----Original Message-----
From: Shiuwen Fu [mailto:shiuwenf@microsoft.com]
Sent: Thursday, August 15, 2002 5:24 PM
To: gnupg-users@gnupg.org
Subject: How to bypass the passphrase prompt when runing gpg decrypt
command in a script?


Hi all,

Does anyone know how to achieve this in a script when running gpg decrypt
option w/o prompting for passphrase input? I'm using Version: GnuPG v1.0.7
(OSF1). 

Thanks in advance,

Shiuwen 

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


CONFIDENTIALITY NOTICE:  This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.