How to send passphrase to gpg with symetric encryption?

Thomas Braun Wegasoft Support <tb@wegasoft.de>
Wed Oct 16 17:03:02 2002


Hi,

I tried the following method suggested by one of the list members:

  echo "1234" | gpg --passphrase-fd 0 -c test.txt

It *seems* to encrypt without error (well, at least it does *not* ask
for the passphrase) but when I try to decrypt the
message again with this command:

  gpg -d test.gpg

I get the error message "decryption failed: bad key"

I tried it from the commandline and in a batch file.

Any hints what I may be doing wrong?

BTW, running on Windoze 2000 (which may be the cause ;-)

-- 
regards
Thomas Braun