Hi everyone,
I get confused when to convert string to byte array. let's go to the code
String strKey = "BDE540BD7E91EDACA3B0125FE004F52C";
byte[] bytKey = strKey.getBytes();
System.out.println("len "bytKey.length);
When I run the code, the length of bytKey is 32 not 16. I want the length of bytKey is 16.
So in array should be like this ;
bytKey[0] = 'BD';
bytKey[1] = 'E5';
......
......
bytKey[15] = '2C';
Please share me if anyone know how to solve this,
thanks