OpenPGP Library for Java 3.1.3.9 can import GnuPG kbx files

We are happy to announce version 3.1.3.9 of DidiSoft OpenPGP Library for Java.

In this new updated version a new method has been added for importing public keys from GnuPG keybox (.kbx) key storage format. Below is a short example that demonstrates the usage of the new method:

1
2
3
4
5
6
7
8
9
10
import com.didisoft.pgp.KeyStore;
public class ImportKeyDemo {
 public static void main(String[] args) throws Exception {
   // initialize the key store
   KeyStore keyStore = new KeyStore("pgp.keystore", "changeit");
 
   KeyPairInformation[] importedKeys = 
         keyStore.importGnuPgKbx("C:\\Users\\me\\AppData\\Roaming\\gnupg\\pubring.kbx");     
 }
}

Other changes

This version provides also a fix for importing ASCII armored keys with Charset: header line. Attempts to import such keys in previous versions were throwing error.