Here you can find the source of sha256(String Input)
public static String sha256(String Input) throws java.security.NoSuchAlgorithmException
//package com.java2s; //License from project: Open Source License import java.math.BigInteger; import java.security.MessageDigest; public class Main { public static String sha256(String Input) throws java.security.NoSuchAlgorithmException { String Return = Input;/* w w w . j av a 2 s. c o m*/ MessageDigest MessageD = MessageDigest.getInstance("SHA-256"); MessageD.update(Return.getBytes(), 0, Return.length()); return new BigInteger(1, MessageD.digest()).toString(16); } }