hxb
2023-06-29 4e4f605f481af8a8f0ad9e13ae9ab4dbe73eecfd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.hdl.sdk.link.core.utils;
 
/**
 * Created by hxb on 2022/8/5.
 */
public class ByteUtils {
 
    public static String encodeHexString(byte[] data) {
 
        StringBuilder sb = new StringBuilder();
 
        for (byte b : data) {
 
            sb.append(String.format("%02x ", b));
 
        }
        return sb.toString();
 
    }
}