public class MD5Tools extends Object
| Constructor and Description |
|---|
MD5Tools() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLowMd5ByBigFile(File file)
获取大容量文件的MD5值,结果中的英文字母为小写
|
static String |
getLowMd5ByBigFile(String pathname)
获取大容量文件的MD5值,结果中的英文字母为小写
|
static String |
getLowMd5ByFileIo(File file)
通过IO读取文件,并计算出其MD5值,结果为英文字母小写
|
static String |
getLowMd5ByFileNio(File file)
通过NIO读取文件,并计算出其MD5值,结果为英文字母小写
|
static String |
getLowMD5Str(byte[] bytes)
获得 字节数组 的MD5加密值,结果为英文字母小写
|
static String |
getLowMD5Str(String str)
获得 字符串 的MD5加密值,结果为英文字母小写
|
public static final String getLowMD5Str(byte[] bytes)
bytes - public static final String getLowMD5Str(String str)
str - public static String getLowMd5ByFileNio(File file) throws IOException
file - IOExceptionpublic static String getLowMd5ByFileIo(File file)
file - public static String getLowMd5ByBigFile(String pathname)
pathname - Copyright © 2018. All rights reserved.