public class Hash
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
CKB_HASH_PERSONALIZATION |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
blake160(java.lang.String hexInput) |
static byte[] |
blake2b(byte[] input)
Blake2b-256 hash function.
|
static byte[] |
blake2b(byte[] input,
int offset,
int length)
Blake2b-256 hash function.
|
static java.lang.String |
blake2b(java.lang.String hexInput)
Blake2b-256 hash function.
|
static java.lang.String |
blake2bString(java.lang.String utf8String)
Blake2b-256 hash function that operates on a UTF-8 encoded String.
|
public static java.lang.String blake2b(java.lang.String hexInput)
hexInput - hex encoded input data with optional 0x prefixpublic static byte[] blake2b(byte[] input,
int offset,
int length)
input - binary encoded input dataoffset - of start of datalength - of datapublic static byte[] blake2b(byte[] input)
input - binary encoded input datapublic static java.lang.String blake2bString(java.lang.String utf8String)
utf8String - UTF-8 encoded stringpublic static java.lang.String blake160(java.lang.String hexInput)