Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
1. Invalid key length
When the key length is invalid, Commons Crypto's error message is
"Invalid key length."
JDK would throw an error message: "Invalid AES key length: xx bytes"
2. invalid IV length error mesage
Commons Crypto : "Wrong IV length."
JDK: "Wrong IV length: must be 16 bytes long"
JDK's error message is more informative. it would be better to keep consistent with JDK.