This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes Security Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Security" Watch "Security" New topic
Author

Security

kiran babu
Greenhorn

Joined: Aug 05, 2002
Posts: 3
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.


kiran babu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Security
 
Similar Threads
Security
BadPaddingException
BC works fine in simulator, but stops working after awhile on nokia phone?
Encrypted values all contain same final characters
Basic Security question