Re[2]: How to send passphrase to gpg with symetric encryption?
Thomas Braun
Wegasoft Support <tb@wegasoft.de>
Thu Oct 17 14:43:02 2002
Hi Timo,
> Seems like the file is okay. Maybe there is a typo in your passphrase?
I use the following batch and I hope I was successful in typing
"1234" when gpg asked me ;-)
@ECHO OFF
del test.gpg
ECHO 1234 | gpg -c -v -v --cipher-algo BLOWFISH --passphrase-fd 0 test.txt
PAUSE
gpg -d -v -v test.gpg
This is the output when I run this batch:
Reading passphrase from file descriptor 0
gpg: loaded digest 2
gpg: writing to `test.gpg'
Drücken Sie eine beliebige Taste . . .
:symkey enc packet: version 4, cipher 4, s2k 3, hash 2
salt 30ebf29dd06f4b8b, count 96
gpg: loaded digest 2
:encrypted data packet:
length: 51
gpg: BLOWFISH encrypted data
gpg: decryption failed: bad key
The exact version I'm using is 1.0.6-2
--
regards
Thomas Braun