@InterfaceAudience.Public @InterfaceStability.Stable public class MD5Hash extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
LOG |
| 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 - Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.