First version of password hashing for jenkins.
diff --git a/_modules/jenkins_hash.py b/_modules/jenkins_hash.py
new file mode 100644
index 0000000..6796bbd
--- /dev/null
+++ b/_modules/jenkins_hash.py
@@ -0,0 +1,9 @@
+import hashlib
+import random
+import string
+
+def encode_password(password):
+ salt = ''.join(random.SystemRandom().choice(string.ascii_letters)
+ for i in range(6))
+ hash_ = hashlib.sha256("%s{%s}" % (password, salt)).hexdigest()
+ return "%s:%s" % (salt, hash_)
\ No newline at end of file