Java SHA256 SHA256(byte[] src)

Here you can find the source of SHA256(byte[] src)

Description

SHA

License

Open Source License

Declaration

public static byte[] SHA256(byte[] src) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.security.MessageDigest;

public class Main {
    public static byte[] SHA256(byte[] src) {
        try {/*www  .j a  va 2s  . com*/
            MessageDigest md = MessageDigest.getInstance("SHA-256");
            md.update(src);
            return md.digest();
        } catch (Exception e) {
        }
        return null;
    }
}

Related

  1. sha256(byte[] bytes)
  2. sha256(byte[] data)
  3. sha256(byte[] data)
  4. SHA256(byte[] input)
  5. SHA256(byte[] P)
  6. SHA256(ByteBuffer buf, int off, int length)
  7. sha256(final InputStream inputStream)
  8. sha256(final String string)
  9. sha256(InputStream data)