Skip to content

Instantly share code, notes, and snippets.

@kmcquade
Forked from tuxfight3r/jenkins-decrypt.groovy
Last active March 5, 2025 07:01
Show Gist options
  • Save kmcquade/2dfa9fbbc84a269f318f6e849597bd6a to your computer and use it in GitHub Desktop.
Save kmcquade/2dfa9fbbc84a269f318f6e849597bd6a to your computer and use it in GitHub Desktop.
Decrypting Jenkins Password

To Decrypt Jenkins Passwords

  1. Go to the "Configure System" screen.
  2. Right click on a password field, Inspect element, then change to "text" instead of "password".
  3. Copy that field and then go to the Script Console. Paste the below into the field, replace with your encrypted password, and then hit "run".
encrypted_pw = '{your_encrypted_password_with_brackets_around_it}'
passwd = hudson.util.Secret.decrypt(encrypted_pw)
println(passwd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment