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) |
public static final 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 © 2013 Zanata Project. All Rights Reserved.