Gitiles
Code Review
Sign In
gerrit.mcp.mirantis.com
/
salt-formulas
/
jenkins
/
65549fc399d3c5e1b713082e8b1d3def3e8ba5b3
/
.
/
_modules
/
jenkins_hash.py
blob: cf9a9d64a07a1440d367587ee5a2f7c90db64873 [
file
] [
log
] [
blame
]
import
bcrypt
def
encode_password
(
password
):
if
isinstance
(
password
,
str
):
return
bcrypt
.
hashpw
(
password
,
bcrypt
.
gensalt
(
prefix
=
b
"2a"
))