Java MD5 Hash md5Hash(byte[] key)

Here you can find the source of md5Hash(byte[] key)

Description

md Hash

License

Open Source License

Declaration

public static byte[] md5Hash(byte[] key) 

Method Source Code

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

Related

  1. md5Hash(byte[] bytes)
  2. md5Hash(byte[] data)
  3. md5Hash(byte[] data)
  4. md5hash(byte[] input)
  5. md5Hash(String algorithm, String input)
  6. md5Hash(String buf)
  7. md5Hash(String content)
  8. md5Hash(String in)