Saturday, March 17, 2012

Java Cryptography Extension (JCE)

By default the Java cryptographic keys have the limited maximum key length 128-bits. This is due to various legal aspects, but anyhow some applications require keys longer than 128. Therefore you can use the JCE patch to remove this limitation of Java.

How to install the JCE patch
  1. Go to the "/lib/security" folder and remove "local_policy.jar" and "US_export_policy.jar" from there. (cut and past them to backup them at some other place)
  2. Download the jce_policy-6.zip from here 
  3. Extract the downloaded jce_policy-6.zip
  4. Copy "local_policy.jar" and "US_export_policy.jar" from the extracted "jce" folder to "/lib/security"

Now your JVM must be restarted for patch to be effected so restarting your Java application is required.

No comments:

Post a Comment