public static String shaBase64(final String salt, final String data, final String separator, final boolean chunked) {
        val result = rawDigest(MessageDigestAlgorithms.SHA_1, salt, Optional.ofNullable(separator).map(s -> data + s).orElse(data));
        return EncodingUtils.encodeBase64(result, chunked);
    }
Sha base 64 string.

@param salt      the salt
@param data      the data
@param separator a string separator, if any
@param chunked   the chunked
@return the string
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/DigestUtils.java