public String encrypt_MD5(String source) throws Exception { MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.update(source.getBytes()); return Base64.encodeToString(md5.digest(), Base64.DEFAULT); }
原文地址:http://blog.csdn.net/u013425527/article/details/41924389