Because of restrictions on import controls in some countries, the addition and decryption of Java-issued run environment packages is limited. For example, the default is not to allow 256-bit key AES encryption, the workaround is to modify the policy file.
The official website provides a download of the JCE unrestricted permissions policy file:
JDK6 's:
Http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
JDK7 's:
Http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
After downloading, you can see Local_policy.jar and Us_export_policy.jar as well as Readme.txt.
If you have a JRE installed, place two jar files under%jre_home%\lib\security to overwrite the original file, and remember to back it up first.
If the JDK is installed, the two jar files are also placed under%jdk_home%\jre\lib\security.
Because information security is extremely important in the military, such as the use of radio during the Second World War, if the successful decryption of the enemy's confidential information, is often indicative of the victory of the war,
Therefore, the United States for encryption and decryption software export restrictions, the JDK default encryption key length is shorter, the encryption strength is low, and the file in UnlimitedJCEPolicyJDK7 is not such a limitation, so in order to obtain better encryption strength, need to replace the two files.
Java Password extension Unrestricted permissions policy file