public static String sha(final String data) {
        return digest(MessageDigestAlgorithms.SHA_1, data);
    }
Computes hex encoded SHA digest.

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