InvalidKeyException: Illegal key size is one of the solutions for AES encryption

InvalidKeyException: Illegal key size is one of the solutions for AES encryption

There are several reasons for this error, and the solutions are also different.
One is as follows:
Insert picture description here
Download URL: https://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html
Download and unzip the two jars and copy them to java/jdk/jre/lib/security Overwrite the original in the folder

Insert picture description here

Perfect solution

Guess you like

Origin blog.csdn.net/weixin_43140244/article/details/85604490