encrypting and signing a file without a passphrase
Mon Feb 10 18:15:02 2003
-----BEGIN PGP SIGNED MESSAGE-----
Am Sonntag, 9. Februar 2003 18:07 schrieb Steve Kwong:
> Hi all,
> I am using version 1.2.1. Can someone help me with the following:
> I would like to send encrpyt and sign a file without having to enter a
> passphrase each time. I could not find a way to pass the passphrase as=
> argument to GPG. In the FAQ, there was some mention (article 4.14) ab=
> a batch process and removing the passphrase using --edit. I tried that=
> but when I entered:
> gpg --edit foo
> I had no means of editing foo.
> Any ideas how I can encrpyt and sign a file without having to enter my
You can provide your passphrase via file descriptor 0 to gpg.
echo your-passphrase | gpg --passphrase-fd=3D0 -ase -r recepients-id test=
If you use this in a script your passphrase is accessable to everybody wh=
read your script.
> Gnupg-users mailing list
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
-----END PGP SIGNATURE-----