public static String sha256(final String data) {
        return digest(MessageDigestAlgorithms.SHA_256, data.getBytes(StandardCharsets.UTF_8));
    }
Computes hex encoded SHA256 digest.

@param data data to be hashed
@return sha-256 hash
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/DigestUtils.java