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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Coderanch by Sebastian Wong, 1 year ago
Input length must be multiple of 16 when decrypting with padded cipher
via Stack Overflow by hkguile
, 1 year ago
Input length must be multiple of 16 when decrypting with padded cipher
via Stack Overflow by wondergoat77
, 1 year ago
Input length must be multiple of 16 when decrypting with padded cipher
via Stack Overflow by Lalit Verma
, 5 months ago
Input length must be multiple of 16 when decrypting with padded cipher
via Stack Overflow by StackHogger
, 1 year ago
Input length must be multiple of 16 when decrypting with padded cipher
via Stack Overflow by s.gang
, 1 year ago
Input length must be multiple of 16 when decrypting with padded cipher
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313)
at javax.crypto.Cipher.doFinal(Cipher.java:2087)
at undefined.AES.decrypt(AES.java:31)
at undefined.EchoServer.main(EchoServer.java:26)

Users with the same issue

4 times, 1 year ago
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
Once, 10 months ago
4 times, 11 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.