Here you can find the source of md5Hash(byte[] key)
public static byte[] md5Hash(byte[] key)
//package com.java2s; //License from project: Open Source License import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; public class Main { public static byte[] md5Hash(byte[] key) { try {// www . j av a 2 s .c om return MessageDigest.getInstance("MD5").digest(key); } catch (NoSuchAlgorithmException e) { throw new RuntimeException(e); } } }