public class MD5
extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_READ_BYTES_FOR_MD5SUM |
| Constructor and Description |
|---|
MD5() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getFileMD5Sum(File f)
Method: getFileMD5Sum
Purpose: get the MD5 sum of a file.
|
static void |
main(String[] args) |
static String |
md5Sum(byte[] input) |
static String |
md5Sum(byte[] input,
int limit) |
static String |
md5Sum(String str)
Method: md5Sum
Purpose: calculate the MD5 identical to the md5sum unix command).
|
public static String md5Sum(String str)
str - the String from which to calculate the sumpublic static String md5Sum(byte[] input)
public static String md5Sum(byte[] input,
int limit)
public static String getFileMD5Sum(File f)
throws IOException
f - the file to readIOException - on IO errorpublic static void main(String[] args)
throws Exception
Exception