java.io.IOException: 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

Solutions on the web

via JDK Bug System by Webbug Group, 1 year ago
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
via JDK Bug System by Webbug Group, 1 year ago
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
via JDK Bug System by Webbug Group, 1 year ago
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
via apache.org by Unknown author, 2 years ago
javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
via Coderanch by Mandar Khire, 1 year ago
javax.crypto.BadPaddingException: Given final block not properly padded
via coderanch.com by Unknown author, 1 year ago
javax.crypto.BadPaddingException: Given final block not properly padded
java.io.IOException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:913)
at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)
at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
at javax.crypto.Cipher.doFinal(Cipher.java:2004)
at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:112)
at javax.crypto.CipherInputStream.read(CipherInputStream.java:233)
at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:284)
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:326)
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:178)
at java.io.InputStreamReader.read(InputStreamReader.java:184)
at java.io.BufferedReader.fill(BufferedReader.java:161)
at java.io.BufferedReader.readLine(BufferedReader.java:324)
at java.io.BufferedReader.readLine(BufferedReader.java:389)
at undefined.JVMAESEncryptionTest.main(JVMAESEncryptionTest.java:127)

Users with the same issue

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

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