This discussion is archived
3 Replies Latest reply: Nov 19, 2012 9:35 PM by 975130 RSS

Illegal key size or default parameters exception in javax.crypto.Cipher

975130 Newbie
Currently Being Moderated
I 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.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points