Thanks, i will have a look. Sounds like i may completely have a wrong impression how the cipherstream have to be used.
I was curious about how this can work: /* * Read a predefined data block. If the password is incorrect, we'll get a security * exception here. Without this, we will only get an IOException later when reading * the CipherInputStream, which is not specific enough for a good error message. */ int count = streamIn.read(); if (count <= 0 || count > 1024) { throw new IOException( mContext.getString(R.string.backup_restore_error_bad_file)); } byte[] input = new byte[count]; streamIn.read(input); pbeCipher.doFinal(input); -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en