The recommended way to use the ~GnuPG crypto stack from your application is ~GPGME.