in reply to OT: PGP encryption command to use in Perl
I would use the -f command line option and use pgp as a filter:
my $cmd = "pgp -f -ea +batchmode publickey.pgp >SampleData.txt.asc"; open my $pgp, "| $cmd" or die "Couldn't run [$cmd]: $!"; print $pgp "Hello World"; close $pgp;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OT: PGP encryption command to use in Perl
by newperlmonkey (Novice) on Oct 12, 2015 at 19:41 UTC | |
by Corion (Patriarch) on Oct 13, 2015 at 07:54 UTC | |
by soonix (Chancellor) on Oct 13, 2015 at 07:49 UTC |