Java MD5 Byte Array md5Byte(String encryptStr)

Here you can find the source of md5Byte(String encryptStr)

Description

md Byte

License

Apache License

Declaration

public static byte[] md5Byte(String encryptStr) throws Exception 

Method Source Code


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

import java.security.MessageDigest;

public class Main {
    public static byte[] md5Byte(String encryptStr) throws Exception {
        MessageDigest md = MessageDigest.getInstance("MD5");
        md.update(encryptStr.getBytes("UTF-8"));
        return md.digest();
    }/*from w ww  . ja v  a  2 s .  c  om*/
}

Related

  1. MD5(byte[] src)
  2. md5(byte[] str)
  3. md5(final byte[] b)
  4. md5(final byte[] bytes)
  5. md5(final byte[] data)
  6. MD5Bytes(byte[] src)
  7. md5Bytes(String message)
  8. md5Bytes(String s)
  9. md5Digest(byte[] bytes)