code: public static byte[] encryptMD5 (byte[] input) throws NoSuchAlgorithmException {
  		MessageDigest md = MessageDigest.getInstance("MD5");
  		md.update(input); 
  		return md.digest();
  	}
docs: Encrypt MD5 from Byte Array to Byte Array
  @param input
  @return
  @throws NoSuchAlgorithmException