GnuPG::Key - GnuPG Key Object
# assumes a GnuPG::Interface object in $gnupg my @keys = $gnupg->get_public_keys( 'ftobin' ); # now GnuPG::PublicKey objects are in @keys
GnuPG::Key objects are generally not instantiated on their own, but rather used as a superclass of GnuPG::PublicKey, GnuPG::SecretKey, or GnuPG::SubKey objects.
This methods creates a new object. The optional arguments are initialization of data members; the initialization is done in a manner according to the method created as described in "new_hash_init" in Class::MethodMaker.
This method works as described in "new_hash_init" in Class::MethodMaker.
This returns the commonly-used short, 8 character short hex id of the key.
Note that these data members are interacted with via object methods created using the methods described in "get_set" in Class::MethodMaker, or "object" in Class::MethodMaker. Please read there for more information.
Number of bits in the key.
They algorithm number that the Key is used for.
The data of the key.
The long hex id of the key. This is not the fingerprint nor the short hex id, which is 8 hex characters.
Formatted date of the key's creation and expiration.
A GnuPG::Fingerprint object.
See also GnuPG::Fingerprint and Class::MethodMaker.
To install GnuPG::Interface, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GnuPG::Interface
CPAN shell
perl -MCPAN -e shell install GnuPG::Interface
For more information on module installation, please visit the detailed CPAN module installation guide.