Java MD5 Byte Array md5(byte[] str)

Here you can find the source of md5(byte[] str)

Description

md

License

LGPL

Declaration

private static byte[] md5(byte[] str) throws NoSuchAlgorithmException 

Method Source Code


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

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

public class Main {

    private static byte[] md5(byte[] str) throws NoSuchAlgorithmException {
        MessageDigest md = MessageDigest.getInstance("MD5");
        md.update(str);/*from   w  w  w  . j a  va  2 s.  co  m*/
        return md.digest();
    }
}

Related

  1. MD5(byte[] source)
  2. md5(byte[] source)
  3. md5(byte[] source)
  4. md5(byte[] source)
  5. MD5(byte[] src)
  6. md5(final byte[] b)
  7. md5(final byte[] bytes)
  8. md5(final byte[] data)
  9. md5Byte(String encryptStr)