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!

Encrypt password gives javax.crypto.IllegalBlockSizeException

ATael-OracleOct 25 2019

Hello,

when trying to encrypt a password using maven I get the following error:

$ mvn -ep secretpwd

[ERROR] Error executing Maven.

[ERROR] javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher

[ERROR] Caused by: Input length must be multiple of 16 when decrypting with padded cipher

I am using the following java version:

$ java -version

java version "1.8.0_231"

Java(TM) SE Runtime Environment (build 1.8.0_231-b11)

Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode)

Any idea what could be wrong?

Thanks

Andy

Comments
Post Details
Added on Oct 25 2019
0 comments
485 views