Here you can find the source of md5Byte(String encryptStr)
public static byte[] md5Byte(String encryptStr) throws Exception
//package com.java2s; //License from project: Apache License import java.security.MessageDigest; public class Main { public static byte[] md5Byte(String encryptStr) throws Exception { MessageDigest md = MessageDigest.getInstance("MD5"); md.update(encryptStr.getBytes("UTF-8")); return md.digest(); }/*from w ww . ja v a 2 s . c om*/ }