摘要: 1 public static String encode(String str) { 2 String encodeString = ""; 3 4 try { 5 MessageDigest md = MessageDigest.getInstance("md5"); 6 // 用MD5加密后的字节... 阅读全文
posted @ 2016-04-15 14:19 王浩宇blog 阅读(569) 评论(0) 推荐(0) 编辑
摘要: 1 public static String encodeFile(String path) { 2 3 try { 4 MessageDigest digester = MessageDigest.getInstance("MD5"); 5 6 FileInputStream in = ne... 阅读全文
posted @ 2016-04-15 14:18 王浩宇blog 阅读(1125) 评论(0) 推荐(0) 编辑