I would like to use these classes https://github.com/fukata/AES-256-CBC-Example in my project, but even if I compile it w/o changing anything it causes error:
Exception in thread "main" java.lang.RuntimeException: java.security.InvalidKeyException: Illegal key size at AESUtil.encrypt(AESUtil.java:23) at AESMain.main(AESMain.java:10) Caused by: java.security.InvalidKeyException: Illegal key size at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) at javax.crypto.Cipher.implInit(Cipher.java:805) at javax.crypto.Cipher.chooseProvider(Cipher.java:864) at javax.crypto.Cipher.init(Cipher.java:1396) at javax.crypto.Cipher.init(Cipher.java:1327) at AESUtil.encrypt(AESUtil.java:20) ... 1 more
How to fix Illegal key size? I downloaded it and copied java folder to my project. Any help would be appreciated :)