This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes BadPaddingException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "BadPaddingException" Watch "BadPaddingException" New topic


Arpit Panwar

Joined: Jul 16, 2009
Posts: 12

SCJP 75%
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41048
You don't tell us what's happening, or in which line of code it's happening, but usually this exception is caused by treating encrypted data (which is binary data) as character data (by storing it in a String object). The code seems to be doing exactly that.

Ping & DNS - my free Android networking tools app
I agree. Here's the link:
subject: BadPaddingException
Similar Threads
Encryption/Decryption using Blowfish algorithm
Encryption / Decryption Problem
padding problem with AES(help)
encoding in java and decoding in perl