Here you can find the source of md5(String Input)
public static String md5(String Input) throws java.security.NoSuchAlgorithmException
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; import java.security.MessageDigest; public class Main { public static String md5(String Input) throws java.security.NoSuchAlgorithmException { String Return = Input;/*from w w w. j a v a2 s .c om*/ MessageDigest MessageD = MessageDigest.getInstance("MD5"); MessageD.update(Return.getBytes(), 0, Return.length()); return new BigInteger(1, MessageD.digest()).toString(16); } }