Java SHA256 sha256(byte[] bytes)

Here you can find the source of sha256(byte[] bytes)

Description

sha

License

Apache License

Declaration

private static byte[] sha256(byte[] bytes) throws NoSuchAlgorithmException 

Method Source Code

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

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

public class Main {
    private static byte[] sha256(byte[] bytes) throws NoSuchAlgorithmException {
        return MessageDigest.getInstance("SHA-256").digest(bytes);
    }/* www .j av  a2s  .  c  o m*/
}

Related

  1. digestSHA256(byte[] input)
  2. digestSha256(String plain)
  3. digestSha256(String value)
  4. getSHA256(String input)
  5. sha256()
  6. sha256(byte[] data)
  7. sha256(byte[] data)
  8. SHA256(byte[] input)
  9. SHA256(byte[] P)