PgpDecryptor - Module for decrypt PGP data
my $pgp = new App::Greple::PgpDecryptor;
Initialize object.
Without parameter, read passphrase from terminal.
$pgp->initialize();
Provide passphrase string or file descriptor if available.
$pgp->initialize({passphrase => passphrase}); $pgp->initialize({passphrase_fd => fd});
Decrypt data. Pass the encrypted data and get the result.
$decrypted = $pgp->decript($encrpted);
Return decrypt command string. You can use this command to decrypt data. Call reset after command execution.
open(STDIN, '-|') or exec $pgp->decrypt_command;
Reset internal status.
To install App::Greple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Greple
CPAN shell
perl -MCPAN -e shell install App::Greple
For more information on module installation, please visit the detailed CPAN module installation guide.