public static String sha256Hash(String string) throws NoSuchAlgorithmException {
  return sha256Hash(string.getBytes(StandardCharsets.UTF_8));
}

public static String sha256Hash ( String string ) throws NoSuchAlgorithmException { return sha256Hash ( string . getBytes ( StandardCharsets . UTF_8 ) ) ; }
returns sha - 256 hash of given string .
