| Modifier and Type | Field and Description |
|---|---|
static int |
OUTPUT_SIZE
Output size in bits.
|
static int |
OUTPUT_SIZE_IN_BYTES
Output size in bytes.
|
| Constructor and Description |
|---|
Sha() |
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
hash(byte[] data)
Hashes given
data. |
byte[] |
hash(String data)
Hashes given
data. |
String |
hashToString(byte[] data)
Hashes given
data and returns as a HEX string. |
String |
hashToString(String data)
Hashes given
unhashed and returns as a HEX string. |
public static int OUTPUT_SIZE
public static final int OUTPUT_SIZE_IN_BYTES
public abstract byte[] hash(byte[] data)
data.data - data to hashpublic byte[] hash(String data)
data.data - the string to hashpublic String hashToString(byte[] data)
data and returns as a HEX string.data - data to hashCopyright © 2011-2012. All Rights Reserved.