private String encryptValueAndThrow(final String value) {
        initializeJasyptInstanceIfNecessary();
        return ENCRYPTED_VALUE_PREFIX + jasyptInstance.encrypt(value);
    }
Encrypt value string (but don't log error, for use in shell).

@param value the value
@return the string
core/cas-server-core-configuration-api/src/main/java/org/apereo/cas/configuration/support/CasConfigurationJasyptCipherExecutor.java