Decrypting Jenkins Passwords

A short hack to recover a password from the Jenkins configuration files:

  1. Retrieve the encrypted password from $JENKINS_HOME/config.xml
  2. Open the Jenkins Script Console
  3. Execute e.g.
hudson.util.Secret.decrypt 'vceV2JWuTNIVc85PceFrk9C3u9AqB2nEQNg2a2xIA78='