public String encrypt_MD5(String source) throws Exception { MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.update(source.getBytes()); return Base64.encodeToString(md5.digest(), Base64.DEFAULT); }
时间: 2024-10-12 05:21:21
public String encrypt_MD5(String source) throws Exception { MessageDigest md5 = MessageDigest.getInstance("MD5"); md5.update(source.getBytes()); return Base64.encodeToString(md5.digest(), Base64.DEFAULT); }