def hash(self, password):
        return bcrypt.hashpw(password, bcrypt.gensalt(self.bcrypt_rounds))
Computes a secure hash of password.
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/auth.py/AuthHandler.hash