public class HashUtil extends Object
Constructor and Description |
---|
HashUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
generateHash(String key) |
static String |
getMD5Checksum(File f)
Generates the MD5 checksum from the contents of a file.
|
static String |
md5Hex(String message) |
static String |
sourceHash(List<String> sourceContents) |
static String |
sourceHash(String sourceContent) |
public static String getMD5Checksum(File f) throws FileNotFoundException, IOException
f
- The file to calculate the checksum for.FileNotFoundException
- If the given file does not exist.IOException
- On error reading from the file.Copyright © 2016 Zanata Project. All rights reserved.