public static String sha256Hex ( String data , Charset charset ) throws NoSuchAlgorithmException { return sha256Hex ( data . getBytes ( charset ) ) ; }
Hashes a string using the SHA - 256 algorithm . Returns a hexadecimal result .