default String encode(final String data) {
        return encode(data, Optional.empty());
    }
Encode string.

@param data the data
@return the string
api/cas-server-core-api-services/src/main/java/org/apereo/cas/services/RegisteredServiceCipherExecutor.java