Script with sensitive info
James R. Hendrick
hendrick@keane-nne.com
Thu Jul 24 15:04:02 2003
You should look at Perl modules related to GnuPG.=20
www.cpan.org has a number (if you search on gnupg)
I haven't had any personal experience using them, but it looks fairly =
straightforward. The one that looks most promising is GnuPG::Interface. =
It has functions for working with filehandles (needed to pass gnupg the =
passphrases, etc.) That way you could read the passphrase on startup and =
use it internally in the script.
Maybe someone with more experience directly using this module can chime =
in?
Jim
> -----Original Message-----
> From: kynn@panix.com [mailto:kynn@panix.com]
> Sent: Thursday, July 24, 2003 8:14 AM
> To: gnupg-users@gnupg.org
> Subject: Re: Script with sensitive info
>=20
>=20
>=20
> From: "James R. Hendrick" <hendrick@keane-nne.com>
> Date: Wed, 23 Jul 2003 16:41:50 -0400
>=20
> You *can* require that a human input that key when the script
> starts up (maybe once per system boot). This still requires the key
> stay in memory in the clear (better than disk, but still possible
> to access).
>=20
> I like this idea. So let me ask a simpler question (I'm a complete
> PGP/Gnupg novice): is there a good way to use Gnupg from within a Perl
> script to encrypt and decrypt a text string based on a user-supplied
> password?
>=20
> Many thanks,
>=20
> KJ
>=20
> _______________________________________________
> Gnupg-users mailing list
> Gnupg-users@gnupg.org
> http://lists.gnupg.org/mailman/listinfo/gnupg-users
>=20