passphrase-fd works on linux but not windows

Todd Todd <Freedom_Lover@pobox.com>
Sat Sep 27 00:31:01 CEST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Frank Calfo wrote:
> but the mirror of this does not work when running on Windows 2000 - it
> keeps returning error: bad passphrase (even though passphrase passed in is
> correct)
>   echo %1 | gpg --homedir %2 --batch --yes --passphrase-fd 0
> --always-trust --encrypt --sign --recipient %3 %4

I recall reading sometime back on this list that on windows you need to put
the | directly after the passphrase. Windows apparently sends the trailing
space along to gnupg, which will make it a bad passphrase.  So try something
like this:

    echo %1| gpg --homedir %2 --batch --yes --passphrase-fd 0 \
        --always-trust --encrypt --sign --recipient %3 %4
- --
Todd              OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
============================================================================
Politicians are interested in people. Not that this is always a virtue.
Fleas are interested in dogs.
    -- P.J. O'Rourke

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iD8DBQE/dLBruv+09NZUB1oRAhQQAKC2tI2z85ChyzpC7BACGkZkexp8rACfdoi5
JnaOfSjDA95sQ/WJTwQCPkM=
=hDRI
-----END PGP SIGNATURE-----




More information about the Gnupg-users mailing list