OpenPGP Library for Java v2.6.6.0 has been released

Dear friends,

We are happy to announce that version 2.6.6.0 of DidiSoft OpenPGP Library for Java has been released.

Existing customers can download the updated version from our customers’ section located at https://www.didisoft.com/customers/

What’s new in this version?

PGP 2.x comaptibility

This version provides a setter method that modifies the behavior of the PGPLib class and it starts to produce PGP 2.x compatible encrypted and signed and encrypted output : PGPLib.pgp.setPgp2Compatible(boolean)

This setting shall be used with caution as it uses only the encryption and hashing algorithms available in PGP 2.x (more information can be found in www.ietf.org/rfc/rfc1991.txt). You must use it only if you are certain that your recipient is using a PGP 2.x software (yes, such software still runs in some organizations).

Output streams are left open

In the methods that deal with streams (e.g. PGPLib.encryptStream, signStream, etc.) we were implicitly closing the output streams. Now the streams are left open, as we had a customer that needed to write additional data afterwards. You must close them explicitly like:

PGPLib pgp = new PGPLib();
OutputStream outStream = ...
try {
 pgp.encryptStream( dataStream, keyStream, outStream, ...
} finally {
 outStream.close();
}

For a complete list of changes, please check the ReleaseNotes.