byte数组转16进制
private static final char[] HEX_CHARS = {'0','1','2','3','4','5','6','7','8','9','a','b',...'c','d','e','f'};
/*
* byte[]数组转十六进制
*/
public static String bytes2hexStr(byte[] bytes) {
int len =...数组
/**
* hex字符串转byte数组
*
* @param inHex 待转换的Hex字符串
* @return 转换后的byte数组结果
*/
public static byte[...] hexToByteArray(String inHex) {
int hexlen = inHex.length();
byte[] result;
if (hexlen %... 2 == 1) {
// 奇数
hexlen++;
result = new byte[(hexlen / 2)];
inHex = "