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:
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
Perfect solution