I'm trying to decrypt on Java, a encrypted string on JavaScript with CryptoJS AES, as explained on this post.
But I have come to an impasse, where I have already installed the Unlimited Strength Jurisdiction Policy as explained on this post, where you only have to replace the JCE files you already have in your $javahome/jre/lib/security.
If i do sudo update-alternatives --config java, I get the current jvm:
* 2 /usr/lib/jvm/java-8-oracle/jre/bin/java 1081 modo manual
So I'm replacing the files at /usr/lib/jvm/java-8-oracle/jre/lib/security/.
I restarted my computer to make sure java restarted and I still got the Illegal key size exception.
The project is on NetBeans, and runs with a Tomcat, the only thing that bothers me, is that the source/binary of the project is JDK 7, which I don't know if it may be the reason for the exception or not.
If it is so, how do I know what JCE files I have to replace? I can't move the source/binary, I mean, I can, but I can't do it on production, it has to work as it is.
If that isn't the reason, how do I solve this problem?