报错信息如下:
Caused by: java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]
at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]
at javax.crypto.Cipher.a(DashoA13*..) ~[na:1.6]
at javax.crypto.Cipher.init(DashoA13*..) ~[na:1.6]
at javax.crypto.Cipher.init(DashoA13*..) ~[na:1.6]
at my.package.Something.decode(RC4Decoder.java:25) ~[my.package.jar:na]
JDK8 jar 包下载地址:
JCE Unlimited Strength Jurisdiction Policy Files for JDK/JRE 8 Download
JDK7 jar 包下载地址:
Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 Download
JDK6 jar 包下载地址:
Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 6
把里面的两个 jar 包:local_policy.jar 和 US_export_policy.jar 替换掉原来安装目录 C:\Program Files\Java\jre6\lib\security 下的两个 jar 包接可以了
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于