public static String encodeBase32(final byte[] data, final boolean chunked) {
        if (chunked) {
            return BASE32_CHUNKED_ENCODER.encodeToString(data).trim();
        }
        return BASE32_UNCHUNKED_ENCODER.encodeToString(data).trim();
    }
Base32-encode the given byte[] as a string.

@param data    the byte array to encode
@param chunked the chunked
@return the encoded string
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/EncodingUtils.java