public abstract class Sha512DigestUtils
extends java.lang.Object
Based on Commons Codec, which does not presently provide SHA512 support.
| Constructor and Description |
|---|
Sha512DigestUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
sha(byte[] data)
Calculates the SHA digest and returns the value as a
byte[]. |
static byte[] |
sha(java.lang.String data)
Calculates the SHA digest and returns the value as a
byte[]. |
static java.lang.String |
shaHex(byte[] data)
Calculates the SHA digest and returns the value as a hex string.
|
static java.lang.String |
shaHex(java.lang.String data)
Calculates the SHA digest and returns the value as a hex string.
|
public static byte[] sha(byte[] data)
byte[].data - Data to digestpublic static byte[] sha(java.lang.String data)
byte[].data - Data to digestpublic static java.lang.String shaHex(byte[] data)
data - Data to digestpublic static java.lang.String shaHex(java.lang.String data)
data - Data to digest