public class HashUtil
extends java.lang.Object
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
ALGO_IDENTIFIER |
| 构造器和说明 |
|---|
HashUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
encode(java.lang.String key,
java.lang.String data) |
static byte[] |
generateMac(byte[] derivedKey,
byte[] cipherText,
byte[] iv) |
static byte[] |
hmacSha256(byte[] derivedKey,
byte[] bytes) |
static byte[] |
sha256(byte[] bytes) |
public static byte[] hmacSha256(byte[] derivedKey,
byte[] bytes)
public static byte[] sha256(byte[] bytes)
public static byte[] generateMac(byte[] derivedKey,
byte[] cipherText,
byte[] iv)
public static byte[] encode(java.lang.String key,
java.lang.String data)
throws java.lang.Exception
java.lang.Exception