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
NoSuchAlgorithmException
IOException
public static byte[] computeMD5Hash(byte[] data) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException
Copyright © 2014. All rights reserved.