public abstract class Sha512DigestUtils extends 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(String data)
Calculates the SHA digest and returns the value as a
byte[] . |
static String |
shaHex(byte[] data)
Calculates the SHA digest and returns the value as a hex string.
|
static String |
shaHex(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(String data)
byte[]
.data
- Data to digestpublic static String shaHex(byte[] data)
data
- Data to digest