Here you can find the source of MD5Raw(byte[] src)
public static byte[] MD5Raw(byte[] src)
//package com.java2s; //License from project: Open Source License import java.security.*; public class Main { private static final ThreadLocal<MessageDigest> md5 = new ThreadLocal<MessageDigest>() { @Override//from w w w. ja va 2s .com protected MessageDigest initialValue() { MessageDigest crypt = null; try { crypt = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return crypt; } }; public static byte[] MD5Raw(byte[] src) { MessageDigest crypt = md5.get(); crypt.reset(); crypt.update(src); return crypt.digest(); } }