What password encryption Jenkins is using?

后端 未结 3 1159
盖世英雄少女心
盖世英雄少女心 2020-12-09 15:46

I am modifying an xml of a Jenkins job. There is a field which is a password. When I get the xml, where it was the raw password now there is a hash.

What I need is to

3条回答
  •  青春惊慌失措
    2020-12-09 16:10

    Another possibility would be to execute a Groovy script via Jenkins Groovy console (you can reach it via JENKINS_URL/script):

    println(hudson.util.Secret.decrypt("zlvnUMF1/hXwe3PLoitMpQ6BuQHBJ1FnpH7vmMmQ2qk=")) 
    

    Some other ways would be possible with python:

    https://github.com/tweksteen/jenkins-decrypt
    https://gist.github.com/menski/8f9980999ed43246b9b2

提交回复
热议问题