Encrypt and decrypt doesn't give the same plain text using AES/ECB/NoPadding
String plain1= "Test"; byte[] cipher = SplashSecure.getInstance().encrypt2(plain1); String plain2 = SplashSecure.getInstance().decrypt2(cipher); plain = Test������������������������ After decryption plainText2 should be equal to plaintext . But it's not. Encrypt/Decrypt methods. public void initKey(String key) { String paddedKey = Utils.padString(key); mKeyspec = new SecretKeySpec(Utils.getBytes(paddedKey), "AES/ECB/NoPadding"); // Utils.getBytes returns "paddedKey.getBytes("CP1252")" } public byte[] encrypt2(String data) { try { Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); cipher