WeChat public account development: message encryption mode java.security.InvalidKeyException: Illegal key size

Solution: Download the JCE unrestricted permissions policy file from the official website, copy and replace the two jar files in the downloaded file to %JAVA_Home%/jre/lib/security

jdk7 official website download address:http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

jdk8 official website download address:http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html

The package I downloaded:https://download.csdn.net/download/csl12919/87541803
Insert image description here

Guess you like

Origin blog.csdn.net/csl12919/article/details/129379980