Script with sensitive info
Thu Jul 24 14:51:01 2003
Content-Type: text/plain; charset=us-ascii
On 24/07/03 08.13, firstname.lastname@example.org wrote:
> From: "James R. Hendrick" <email@example.com>
> Date: Wed, 23 Jul 2003 16:41:50 -0400
> 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).
> 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
If your script has the passphrase available in memory, you can use the
--passphrase-fd option to supply the passphrase to gpg.
For more info, see the "decrypt stdin with passphrase in" from the
beginning of this month.
Common sense is the collection of prejudices acquired by age eighteen.
-- Albert Einstein
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
-----END PGP SIGNATURE-----