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 MD5Hash()
public static String getMD5AsHex(byte[] key)
public static String getMD5AsHex(byte[] key, int offset, int length)
key
- the key to hash (variable length byte array) nn * @return MD5 hash as a 32 character
hex string.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.