@Override
    protected byte[] encode(final CharSequence rawPassword, final byte[] salt) {
        return FunctionUtils.doUnchecked(() -> {
            val args = new Object[]{rawPassword, salt, LOGGER, this.applicationContext};
            return watchableScript.execute(args, byte[].class);
        });
    }
This is {@link GroovyPasswordEncoder}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/support/password/GroovyPasswordEncoder.java