2012/3/18 Italo Mendonça Rocha <[email protected]>: > I'm trying to encrypt and decrypt a file using a key that the user typed. > All these operations are done in Android. At the moment I decrypt I get a > javax.crypto.BadPaddingException: pad block corrupted. The same code works > normally on Windows PC. Why?
Your code looks mostly OK. Check the encrypted file size, and compare to what you get on Windows. 'Pad block corrupted' usually means you are missing a few bytes. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

