Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

975130Nov 19 2012 — edited Nov 20 2012
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2012
Added on Nov 19 2012
3 comments
2,724 views