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.
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.