The Crypt::GPG module provides near complete access to GnuPG
functionality through an object oriented interface. It provides methods
for encryption, decryption, signing, signature verification, key
generation, key export and import, and most other key management
functions.
This module works almost identically to its cousin, Crypt::PGP5. The two
modules together provide a uniform interface to deal with both PGP and
GnuPG. Eventually, these modules will be folded into a single module
which will interface with GnuPG as well as all versions of PGP.
I have seen this in cpan modules so that i extracted and given to your view