jenkins decrypt password script console

Java
for standard secrets:
println(hudson.util.Secret.decrypt("{XXX=}"))

for SecretBytes:
println(new String(com.cloudbees.plugins.credentials.SecretBytes.fromString("{....}").getPlainData(), "ASCII"))
Source

Also in Java: