• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BadPaddingException

 
Arpit Panwar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic