public class Utils
extends java.lang.Object
构造器和说明 |
---|
Utils() |
限定符和类型 | 方法和说明 |
---|---|
static byte[] |
decodeHex(char[] data) |
static byte[] |
decodeHex(java.lang.String data) |
static char[] |
encodeHex(byte[] data) |
static char[] |
encodeHex(byte[] data,
boolean toLowerCase) |
static java.lang.String |
encodeHexString(byte[] data) |
static java.lang.String |
encodeHexString(byte[] data,
boolean toLowerCase) |
static byte[] |
hmacSha1(java.lang.String source,
java.lang.String secretKey) |
static byte[] |
sha1(java.lang.String data) |
public static byte[] decodeHex(java.lang.String data)
public static byte[] decodeHex(char[] data)
public static char[] encodeHex(byte[] data)
public static char[] encodeHex(byte[] data, boolean toLowerCase)
public static java.lang.String encodeHexString(byte[] data)
public static java.lang.String encodeHexString(byte[] data, boolean toLowerCase)
public static byte[] sha1(java.lang.String data)
public static byte[] hmacSha1(java.lang.String source, java.lang.String secretKey)