public class Md5Utils extends Object
| Constructor and Description |
|---|
Md5Utils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
computeMD5Hash(byte[] data)
Computes the MD5 hash of the given data and returns it as an array of
bytes.
|
static byte[] |
computeMD5Hash(InputStream is)
Computes the MD5 hash of the data in the given input stream and returns
it as an array of bytes.
|
public static byte[] computeMD5Hash(InputStream is) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmExceptionIOExceptionpublic static byte[] computeMD5Hash(byte[] data)
throws NoSuchAlgorithmException,
IOException
NoSuchAlgorithmExceptionIOExceptionCopyright © 2016. All rights reserved.