Jenkins Decrypt API Token
go tohttp://jenkins-host/script
hashed_pw='your-sercret-hash-S0SKVKUuFfUfrY3UhhUC3J'passwd = hudson.util.Secret.decrypt(hashed_pw)println(passwd)
it should decrypt your token
You can decode Jenkins token by going to Script Console in your master node (or go to /script
), then run the following command:
println(hudson.util.Secret.decrypt("{XXX=}"))
Note: Replace {XXX=}
with your token string.
To decrypt it without using Jenkins, checkout these scripts: tweksteen/jenkins-decrypt
, menski/jenkins-decrypt.py
.
Related: