Passphrase

John Clizbe JPClizbe@Comcast.net
Wed Sep 3 20:01:02 2003


-----BEGIN PGP SIGNED MESSAGE-----

Robert Kerry wrote:

> Hi,
>
> Is it possible to send the key passphrase to gnupg in the initial
> command when clearsigning to prevent an input prompt?
>
> e.g.
>
> /usr/bin/gpg --passphrase "<passphrase"
>
> ???
>
> Thanks for any help,
>
>
> Rob

The --passphrase-fd lets you specify any file descriptor as the source of
the passphrase. "0" is stdin. You can send the passphrase through other file
descriptors if you need to use stdin for your data.

echo secret  | gpg -e --passphrase-fd 0 .......

Searching the list archives for passphrase && stdin should give you a wealth
of examples for just about any environment. 'passphrase' alone in the
subject line produced around 340 matches.

Although, if your going to save this command if a file somewhere, you'd be
probably just as safe, and have an easier time implementing, if you used a
key with no passphrase. 8-}(


- --
John P. Clizbe                   Inet:   JPClizbe(a)comcast DOT nyet
Golden Bear Networks             PGP/GPG KeyID: 0x608D2A10
  "Most men take the straight and narrow. A few take the road less
traveled.  I chose to cut through the woods."
"*Hundreds* of customers like and use $CO's Unix products."
    - Darl McBride, CEO Caldera/$CO Group
(This .sig block was sponsored by IBM. All hail IBM.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBP1YsuHhXEXG5/HPTAQGzKAf+LNMK8hG6ylwFtdpcfqLDC2MKiSWznKW8
DfGDkHeXkfP9stR7WHiBR8dyaSkzjubf+EEB/uXiifAJXr1HEmPMM3U7SnrL6YOM
zW1yMWW5sd5MW59gO4XkXwvkLC2jdE2efnY/2UE0JZdyFXTFmTeuBmtrkPd+l6QE
+6qWm7fblhVNESYn/7kX75/YpxAYPS++DZUYoCem1+lwAuL/ubQBP0K0NcaKNfUS
hd5k9u1ByoQBnkBlbge+OoGuL2r21nwaCDi++Fp2S/XxlC436eOT8uETtC14o1a1
Rfqh2HxEoEGpvDf1IEpWv2av7NPdtbTwD2kwQs0Kx9HKNWsT/aWDQQ==
=TLZs
-----END PGP SIGNATURE-----