public class MD
public static String compute(String inStr) {
try {
MessageDigest md
byte[] byteArray = inStr
byte[] md
StringBuffer hexValue = new StringBuffer(
for (int i =
int val = ((int) md
if (val <
hexValue
}
hexValue
}
return hexValue
} catch (Exception e) {
return
}
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/27097.html