Suppressing passphrase prompt
Sat Jun 22 05:15:02 2002
Content-Type: text/plain; charset=us-ascii
Steven, et al --
=2E..and then Steven Handleman said...
% Hi All,
% I am a new user to GPG and I am hoping that someone on this list can=20
% provide an easy answer to this. When I try to sign & encrypt a file (--s=
% encrypt --armor), gpg prompts me for a passphrase for my secret key. Is=
% there any way to suppress this prompt? I need to suppress it because the=
% encryption is going to become part of an automated batch file.
If you don't have to sign then you won't need any input; encryption alone
doesn't require a passphrase.
If you do have to sign, it seems to me at least as secure to use a key
with no passphrase as it does to put your passphrase in code somewhere
(which sounds horribly insecure, with nowhere to go but up), so null it
out (perhaps make a new key specifically for this purpose) and sign away.
Hey, you experts on the list -- am I the only one who is astonished and
appalled at people putting their passphrases in code somewhere? Am I
wrong and hard-coding is somehow safer than a guarded key?
% Steven Handleman
% IT Manager
% Geewax, Terker and Co.
HTH & HAND
David T-G * It's easier to fight for one's principles
(play) email@example.com * than to live up to them. -- fortune cookie
http://www.justpickone.org/davidtg/ Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
-----END PGP SIGNATURE-----