GnuPG::Crypticle - (DEPRECATED) use GnuPG::Interface instead!
version 0.023
Stop reading here, and go use GnuPG::Interface instead.
use GnuPG::Crypticle; my $crypticle = GnuPG::Crypticle->new(gpg_home => /home/me/.gnupg); $crypticle->encrypt(src => '/tmp/sourcefile.txt', dst => '/tmp/destfile.gpg', rcpt => 'ABCD0123'); ...
This module should be considered deprecated and unmaintained. It was a stop-gap -- albeit not a very good one -- when the author had no better option to use gpg2 (GnuPG only works with gpg1). GnuPG::Interface is a much better option. Please use that module instead!
full path to gpg binary
location of the .gnupg directory gpg should use
plaintext file containing the passphrase used with any secret keys
path to use as temporary home
Parameters are passed to all methods as a key/value list (hash) e.g.,
subroutine(key1 => val1, key2 => val2);
During object initialization, copies of master gpg keyrings are made in a temporary directory to prevent locking and corruption problems. A restart of the application is necessary if there are key ring changes. Dies on failure.
Encrypts from a source to destination file. Croaks on decryption failure, including signature failure.
parameters:
file name or handle to be decrypted
file name or handle to which decrypted output is sent
returns:
valid signature if present, or true
Dies on failure
file name or handle to be encrypted
file name or handle to which encrypted output is sent
arguments passed directly to gpg execution
Dies on failure. Detects pgp or gpg decryption the same as mime magic does.
This is nowhere near complete or reliable. For best results, just try to decrypt.
file name or handle from which to detect encryption
(private) calls gpg command with necessary options
(private) Opens the passphrase file.
(private) returns a filehandle to /dev/null
This should be read "see instead." GnuPG::Interface
Brad Barden <b at 13os.net>
This software is Copyright (c) 2016 by Brad Barden.
This is free software, licensed under:
The ISC License
To install GnuPG::Crypticle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GnuPG::Crypticle
CPAN shell
perl -MCPAN -e shell install GnuPG::Crypticle
For more information on module installation, please visit the detailed CPAN module installation guide.