I tried to run two examples cryptographic.
Doing debugging with emulators via eclipse everything works fine, debugging with the physical device I get an error:
pad block corrupted
the code is the same, I also tried to do
Cipher cipher = null;
cipher = Cipher.getInstance ("AES", "BC");
calling explicitly bouncy castle, it's OK on pc, error on the physical device I used these two examples
http://www.androidsnippets.com/encryptdecrypt-strings http://www.techrepublic.com/blog/software-engineer/attention-android-developers-keep-user-data-safe/
can someone give me a hint? Thank you in advance