in reply to a PGP or GPG library that works?

I've been using GnuPG::Interface for a couple of years now, with no problems. Maybe it'll work for you.