import java.security.MessageDigest;
public class Test {
public static void main(String[] args) throws Exception {
MessageDigest md = MessageDigest.getInstance("MD5");
byte[] digest = md.digest("Hello, JM.".getBytes("UTF-8"));
for (byte b : digest) {
System.out.printf("%02x", b);
}
}
}