docker-nodepupper/nodepupper/common.py

8 lines
128 B
Python
Raw Permalink Normal View History

2018-10-08 22:31:05 -07:00
import hashlib
def pwhash(password):
h = hashlib.sha256()
h.update(password.encode("UTF-8"))
return h.hexdigest()