NAME
PgpDecryptor - Module for decrypt PGP data
SYNOPSIS
my $pgp = new App::Greple::PgpDecryptor;
DESCRIPTION
initialize
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
Decrypt data. Pass the encrypted data and get the result.
$decrypted = $pgp->decript($encrpted);
decrypt_comand
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
Reset internal status.