Decryption Automation

Steve Butler
Mon May 13 16:54:02 2002

This is a portion of the script I use to automate receiving encrypted files
from our ftp server.

  homedir=$(default gpg_home)

  rm -f "$3" 2>&1 1> /dev/null
  default gpg_pass$1 \
  | gpg --homedir $homedir --passphrase-fd 0 --no-tty --skip-verify \
        --output "$3" --decrypt "$2"

NOTE:  default gpg_home -- returns '/etc/gnupg'
       default gpg_pass$1 -- returns the passphrase referenced by $1
                            ie, default gpg_pass1 returns passphrase for 1st
                                default gpg_pass2 returns passphrase for 2nd

The quote marks are around $2 and $3 since some clients embed spaces in the
file names and this script is running on a Linux box.

-----Original Message-----
From: deepesh pradeep chourey []
Sent: Sunday, May 12, 2002 9:44 PM
Subject: Decryption Automation

Hello group,

  I wanted to automate the encryption/decryption process. For this 
i have made 2 batch files that has encrypt and decrypt commads in 
them. My encryption thing is working fine but the problem is with 
decryption. It asks for the passpharse, is there any way thru 
which we can bypass this and achieve total automation.

Any help is appreciated,


Click below to visit and review jobs in India or 

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.