Add sha256 pass

parent 13a8d53a
...@@ -256,3 +256,9 @@ def hashPwd(pwd): ...@@ -256,3 +256,9 @@ def hashPwd(pwd):
return s.hexdigest() return s.hexdigest()
return False return False
def hashPwd256(pwd):
if pwd and len(pwd)>3:
s=sha256()
s.update(pwd)
return s.hexdigest()
return False
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment