for standard secrets: println(hudson.util.Secret.decrypt("{XXX=}")) for SecretBytes: println(new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("{....}").getPlainData(), "ASCII"))