On Mon, Oct 3, 2011 at 2:36 AM, mac-systems <[email protected]> wrote:
> I try to read encrypted data, but always get java.io.IOException: last
> block incomplete in decryption

Dump the encrypted stream to file and check its length. It must be a
multiple of 8 (block size is 64 bits for DES) for decryption to work.
If it's not, check your code, you probably have a bug somewhere.

And don't use DES if you can avoid it.

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

Reply via email to