Loading

java 计算文件 md5值

String path = "C:\\Users\\mike\\Downloads\\1\\2.txt";
String md5Hex = DigestUtils.md5Hex(new FileInputStream(path));
System.out.println(md5Hex);
posted @ 2020-09-04 13:50  mikemhm  阅读(281)  评论(0编辑  收藏  举报