Discussion:
How to provide password via script
(too old to reply)
highinbc
2013-10-03 22:00:43 UTC
Permalink
I cannot figure out how to securely supply a password to the PGP command
line tool via perl. Any ideas on what the trick is?
Richard
2013-10-04 11:58:52 UTC
Permalink
Post by highinbc
I cannot figure out how to securely supply a password to the PGP command
line tool via perl. Any ideas on what the trick is?
Maybe this will help you further:

$result = system("gpg", "-e", "-r", "$pubkey_ident", "$filename");
if($result != 0) { die $!; } else { unlink "$filename"; }


Best regards, Richard.

Loading...