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