Here you can find the source of md5(String md5)
public static byte[] md5(String md5)
//package com.java2s; //License from project: Apache License import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Main { public static byte[] md5(String md5) { MessageDigest md = null;// w w w. j a va 2 s . co m byte bytes[] = md5.getBytes(); try { md = MessageDigest.getInstance("MD5"); } catch (NoSuchAlgorithmException e) { e.printStackTrace(); } return md.digest(bytes); } }