tibia-website/accounts/utils.py

9 lines
216 B
Python

import hashlib
class LoginHelper(object):
@staticmethod
def hash_password(password):
hashed_password = hashlib.sha1(password.encode('utf-8'))\
.hexdigest()
return hashed_password