Method Summary |
|
static MessageDigest | getDigest(String algorithm) Returns a MessageDigest for the given algorithm .
Parameters: algorithm - The MessageDigest algorithm name. |
public static byte[] | md5(byte[] data) Calculates the MD5 digest and returns the value as a 16 element
byte[] . |
public static byte[] | md5(String data) Calculates the MD5 digest and returns the value as a 16 element
byte[] . |
public static String | md5Hex(byte[] data) Calculates the MD5 digest and returns the value as a 32 character
hex string. |
public static String | md5Hex(String data) Calculates the MD5 digest and returns the value as a 32 character
hex string. |
public static byte[] | sha(byte[] data) Calculates the SHA digest and returns the value as a
byte[] . |
public static byte[] | sha(String data) Calculates the SHA digest and returns the value as a
byte[] . |
public static String | shaHex(byte[] data) Calculates the SHA digest and returns the value as a hex string. |
public static String | shaHex(String data) Calculates the SHA digest and returns the value as a hex string. |