1、字节数组(byte[])转为十六进制(Hex)字符串
String str=Hex.encodeHexString(bytes);
2、十六进制字符串(Hex)转字节数字(byte[])
byte[] bytes=Hex.decodeHex(str);
1、字节数组(byte[])转为十六进制(Hex)字符串
String str=Hex.encodeHexString(bytes);
2、十六进制字符串(Hex)转字节数字(byte[])
byte[] bytes=Hex.decodeHex(str);