You have to download these files and follow the installation instruction in jce\README.txt
How do I remove the Java crypto restrictions?
-
11-03-2022 - |
Question
I am doing some crypto for my homework. The program doesn't show any errors while compiling. However when I run the program I get an exception - java.security.NoSuchAlgorithmException
. I think this is due to the crypto restrictions. I have downloded and imported Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6 (but I am not sure whether the these libraries actually do the crypto). I couldn't find any Sun JCE jar which I've seen imported in some example programs that use crypto ( like import com.sun.crypto.provider.SunJCE
).
Can anyone provide any directions as to how to run my code without exceptions?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow