@InterfaceAudience.Public @InterfaceStability.Stable public class MD5Hash extends Object
Constructor and Description |
---|
MD5Hash() |
Modifier and Type | Method and Description |
---|---|
static String |
getMD5AsHex(byte[] key)
Given a byte array, returns in MD5 hash as a hex string.
|
static String |
getMD5AsHex(byte[] key,
int offset,
int length)
Given a byte array, returns its MD5 hash as a hex string.
|
public static String getMD5AsHex(byte[] key)
key
- public static String getMD5AsHex(byte[] key, int offset, int length)
key
- the key to hash (variable length byte array)offset
- length
-