I am using the folowing code in c#
var Bytes = Convert.FromBase64String(mystring);
and in the byte[] I get the following values: [3,221,235,121,20,212]
but when I run the same conversion in android using :
byte[] secretKeyByteArray=Base64.decode(mystring.getBytes("UTF-8"),Base64.DEFAULT);
I get these values:[3,-35,-21,121,20,-44]. From this what I understand is that android converts byte values greater than 200 to -ve. Any suggestions on how I can get the same byte array in android as I get in c# and vice versa. Also the reason as to why this happens?. Thanks.
Base64.decodeFromString().