Android中MD5加密

  最近項目中遇到MD5加密,代碼很簡單,又是死代碼,不過要注意當長度不足32的時候要補個0。下面是具體代碼,直接拷貝就能用。html public static String getMD5(String str) throws Exception { try { // 生成一個MD5加密計算摘要 MessageDigest md
相關文章
相關標籤/搜索