public static String sha512(final String data) {
        return digest(MessageDigestAlgorithms.SHA_512, data.getBytes(StandardCharsets.UTF_8));
    }
Computes hex encoded SHA512 digest.

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