Automating Decryption using gpg --batch --passphrase-file or gpg --batch --passphrase-fd 0

guk guk gukgukcommunity at
Wed Jun 4 06:45:54 CEST 2008

Hi !

I tried to automate decryption of pgp files by running this command line in windows xp 
gpg --batch --passphrase-fd 0 < passphrase.txt --output "OUTPUT.CSV" --decrypt "OUTPUT.CSV.pgp" 
gpg --batch  --passphrase-file passphrase.txt --output "OUTPUT.CSV" --decrypt "OUTPUT.CSV.pgp" 

but it's always failed.
It always throw an error 
gpg: encrypted with 2048-bit RSA key, ID , created 2008-05-08
gpg: public key decryption failed: bad passphrase
gpg: decryption failed: secret key not available

I'm using gnupg 1.4.9.
Can anybody help me please?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20080603/ffebb2fb/attachment.htm>

More information about the Gnupg-users mailing list