Illegal key size or default parameters exception in javax.crypto.Cipher
975130Nov 19 2012 — edited Nov 20 2012I am experiencing issues while using a third party encryption in J2EE application. Please find the details below of the exception.
The application uses JRE5.
Exception in thread "main" java.security.InvalidKeyException: Illegal key size or default parameters
at javax.crypto.Cipher.a(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at javax.crypto.Cipher.init(Unknown Source)
at com.ucs.reson8es.external.EncryptionHandler.encrypt(EncryptionHandler.java:41)
...
..
.
I was thinking the problem is due to the limited key length in JRE. If someone has experiencied such kind of exceptions while using cryptography then please let me know.