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?

有帮助吗?

解决方案

You have to download these files and follow the installation instruction in jce\README.txt

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top