SKSP_2022_strategicka_hra/server/hra/util.py

8 lines
169 B
Python
Raw Normal View History

2022-09-11 20:09:52 +02:00
import bcrypt
def hash_passwd(a):
salt = b'$2b$12$V2aIKSJC/uozaodwYnQX3e'
hashed = bcrypt.hashpw(a.encode('utf-8'), salt)
return hashed.decode('us-ascii')