I've installed JDK 7. Which already contains the following JARs:
local_policy
US_export_policy
But when I start my application, I was facing JCE error. So I googled and downloaded JDK 7 JCE from here.
My doubt is, when JDK 7 already has JCE JARs, why should I specifically download the same JCE JARs and replace the existing JCE JARs again..??
Edit:
I am using SSHA encryption.
Log:
java.security.invalidkeyexception: illegal key size
java.lang.illegalstateexception: cipher not initialized
The downloaded files are not the same.
Basically the named
.jarfiles only contain property files which enable/disable some cryptography functions. This is because of several different export/import regulations in different countries.You could also modify this files by yourself and enable/disable some cryptography functions for your application.