-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
加解密的异常处理办法
yeancai edited this page Jun 27, 2018
·
6 revisions
如果在加解密的过程中出现java.security.InvalidKeyException: Illegal key size
,则需要下载一个东西:
- JRE/JDK 6:http://www.oracle.com/technetwork/java/javase/downloads/jce-6-download-429243.html
- JRE/JDK 7:http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html
- JRE/JDK 8:http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
如果安装了JRE,将两个jar文件放到$JAVA_HOME/lib/security
目录下覆盖原来的文件
如果安装了JDK,将两个jar文件放到$JAVA_HOME/jre/lib/security
目录下覆盖原来文件
如果是使用了工具可能内置了JRE,需要在工具引用的目录下面将两个jar文件放到/jre/lib/security
目录下覆盖原来的文件