def _hash_password(password: str): return bcrypt.hashpw( password.encode("utf-8"), bcrypt.gensalt() ).decode("utf-8")