public class HashUtils extends Object
Constructor and Description |
---|
HashUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getHash(File file,
String algorithm) |
static String |
getHash(InputStream in,
String algorithm) |
public static String getHash(InputStream in, String algorithm) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException
public static String getHash(File file, String algorithm) throws NoSuchAlgorithmException, IOException
NoSuchAlgorithmException
IOException