string back to byte
Posted on 2002-04-19
eddie aks, Apr 19, 2002 [replies:2]
hi experts, l'm encrypting the String to Byte and store the byte to string variable as follow. how can i get back the exact byte from String variable? how to use string construct the byte array ?
byte bt = "123".getBytes(); //assume bt = [@1234
String s = bt.toString; //now s is "[@1234"
byte bt_test = s.getBytes() //bt_test now is [@124cdf(example). this is not what i wants, i wanted it back to the first line byte variable value which is [@1234