Less than 42 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!

Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Security  RSS feed

kiran babu
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using java encryption package and developed a small program which generates key and encrypts and decrypts the string. when i direct string i gives me values properly(i.e. encrypts and decrypts). But when i retrieve a value from database(mysql) and pass the string for the method the decryption gives me exception. BADPADDING exception. given final block is not padded properly.
can somebody suggest how to rectify and padding procedure.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!