in reply to Re: GPG batch mode, GPG.pm, and win32
in thread GPG batch mode, GPG.pm, and win32
The code assumes that you have the GPG executable in the system path. If it isn't, you'll have to put the path in the open2 statements. Hope this helps...use GPGWrapper; use strict; my $data = "Hello World!\n"; my $user = "Ton"; print $data; $data = GPG_Encrypt_Asym($user, $data); print $data; $data = GPG_Decrypt_Asym($data); print "\n$data\n"; $data = GPG_Encrypt('dumb password', $data); print $data; $data = GPG_Decrypt('dumb password', $data); print "\n$data\n";
-Ton
-----
Be bloody, bold, and resolute; laugh to scorn
The power of man...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: GPG batch mode, GPG.pm, and win32
by isotope (Deacon) on Apr 14, 2001 at 01:41 UTC |