The Crypt::GpgME module provides an OOP-style Perl interface to the gpgme library.