Java MD5 String md5(String Input)

Here you can find the source of md5(String Input)

Description

md

License

Open Source License

Declaration

public static String md5(String Input) throws java.security.NoSuchAlgorithmException 

Method Source Code


//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);
    }
}

Related

  1. md5(String input)
  2. md5(String input)
  3. md5(String input)
  4. md5(String input)
  5. md5(String input)
  6. md5(String input)
  7. md5(String input)
  8. md5(String input)
  9. md5(String input)