Yaniv's Web Corner

GnuPG Java Wrapper API

By Yaniv Yemini


This small class provides a Java API that calls GnuPG (GPG) to perform PGP functions, such as:

  • Sign
  • ClearSign
  • Encrypt
  • Decrypt

The latest code can be downloaded from here (version 0.5).

Sample Code:

Click here for sample code.

For comments, suggestions etc, please contact me here.

Based on a class GnuPG by John Anderson, which can be found at: http://lists.gnupg.org/pipermail/gnupg-devel/2002-February/018098.html.


  • Add support for verifying PGP signatures.
  • Check why getErrorStream () returns the gpg's STDOUT stream and STDERR.
[an error occurred while processing this directive]

© Yaniv Yemini, 1998-2010