- java.lang.Object
-
- ch.qos.logback.core.util.MD5Util
-
-
Constructor Summary
Constructors Constructor Description MD5Util()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasHexString(byte[] messageDigest)booleanequalsHash(byte[] b0, byte[] b1)byte[]md5Hash(String input)Compute hash for input string.
-
-
-
Constructor Detail
-
MD5Util
public MD5Util() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
equalsHash
public boolean equalsHash(byte[] b0, byte[] b1)
-
md5Hash
public byte[] md5Hash(String input)
Compute hash for input string. The hash is computed on the input alone with no previous or subsequent data.- Parameters:
input-- Returns:
-
asHexString
public String asHexString(byte[] messageDigest)
-
-