public static byte[] sha(final byte[] data) {
        return rawDigest(MessageDigestAlgorithms.SHA_1, data);
    }
Computes 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