Java MD5 String md5(String md5)

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

Description

md

License

Apache License

Declaration

public static byte[] md5(String md5) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;

public class Main {
    public static byte[] md5(String md5) {
        MessageDigest md = null;//  w  w  w. j a  va 2  s  .  co  m

        byte bytes[] = md5.getBytes();

        try {
            md = MessageDigest.getInstance("MD5");
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        }

        return md.digest(bytes);
    }
}

Related

  1. MD5(String input)
  2. MD5(String inputString)
  3. md5(String inputText)
  4. md5(String inStr)
  5. md5(String key)
  6. MD5(String md5)
  7. md5(String message)
  8. MD5(String message)
  9. MD5(String message)