How to bypass the passphrase prompt when runing gpg decrypt command in a script?
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
From: Shiuwen Fu [mailto:email@example.com]
Sent: Thursday, August 15, 2002 5:24 PM
Subject: How to bypass the passphrase prompt when runing gpg decrypt
command in a script?
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
Thanks in advance,
Gnupg-users mailing list
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.