'Computes a secure hash of password.
Args:
password (str): Password to hash.
Returns:
Hashed password (str).'

def hash(self, password):

    return bcrypt.hashpw((password.encode('utf8') + self.hs.config.password_pepper), bcrypt.gensalt(self.bcrypt_rounds))
