public class HashUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALGO_IDENTIFIER |
| Constructor and Description |
|---|
HashUtil() |
| Modifier and Type | Method and Description |
|---|---|
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