public class ByteUtil extends Object
| 构造器和说明 |
|---|
ByteUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
concat(byte[] buf1,
byte[] buf2)
Join two byte arrays to a new byte array.
|
static byte[] |
concat(byte[] buf1,
byte[] buf2,
byte[] buf3)
Join three byte arrays to a new byte array.
|
static byte |
fromHex(String s) |
static byte[] |
fromHexString(String s) |
static boolean |
isSha1(String s) |
static boolean |
isSha256(String s) |
static String |
toHex(byte b)
Convert byte to hex string (all lower-case).
|
static String |
toHexString(byte[] b)
Convert bytes to hex string (all lower-case).
|
public static byte[] concat(byte[] buf1,
byte[] buf2)
public static byte[] concat(byte[] buf1,
byte[] buf2,
byte[] buf3)
public static String toHexString(byte[] b)
b - Input bytes.public static String toHex(byte b)
b - Input bytes.public static byte fromHex(String s)
public static byte[] fromHexString(String s)
public static boolean isSha1(String s)
public static boolean isSha256(String s)
Copyright © 2022. All rights reserved.