blob: cf9a9d64a07a1440d367587ee5a2f7c90db64873 [file] [log] [blame]
import bcrypt
def encode_password(password):
if isinstance(password, str):
return bcrypt.hashpw(password, bcrypt.gensalt(prefix=b"2a"))