Closed omatt closed 8 years ago
Currently testing encrypt-decrypt functions for Android side.
Plain text is "You should be able to read this, bro." iv = 483e705e5a7f270f; secretKey = 53c7a330f1bf93d6;
encrypt output is "j:Xg֎ �T;�H��ZA����7�(�yJ1$([d{�$�����ûD" decrypt gives out an error: java.lang.Exception: [decrypt] Invalid int: "j:"
try
iv = "483e705e5a7f270f"; secretKey = "53c7a330f1bf93d6";
Those are the same values. iv and secretKey are String.
fixed it by using bytesToHex
Currently testing encrypt-decrypt functions for Android side.
Plain text is "You should be able to read this, bro." iv = 483e705e5a7f270f; secretKey = 53c7a330f1bf93d6;
encrypt output is "j:Xg֎ �T;�H��ZA����7�(�yJ1$([d{�$�����ûD" decrypt gives out an error: java.lang.Exception: [decrypt] Invalid int: "j:"