Hi Zaphod....
Thanks for your code, so the full code perhaps like this below
public static void convertStr2Byte() {
String strKey = "BDE540BD7E91EDACA3B0125FE004F52C";
...
Type: Posts; User: ardisamudra
Hi Zaphod....
Thanks for your code, so the full code perhaps like this below
public static void convertStr2Byte() {
String strKey = "BDE540BD7E91EDACA3B0125FE004F52C";
...
Hi copeg...
The current encoding have length 32. So in the array should be like this
bytKey[0] = 0x42;
bytKey[1] = 0x44;
bytKey[2] = 0x45;
........
........
bytKey[31] = 0x43;
Hi, copeg..
I expect the byte array from the String , may be I'm wrong about array example writing.
The arrray should be like this :
bytKey[0] = 0xBD;
bytKey[1] = 0xE5;
........
........
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();
...