Here you can find the source of newMd5()
private static MessageDigest newMd5()
//package com.java2s; //License from project: Open Source License import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Main { /**//from w w w .ja v a 2 s. c o m * */ private static MessageDigest newMd5() { try { return MessageDigest.getInstance("md5"); } catch (NoSuchAlgorithmException ex) { return null; } } }