def hashPassword(self, password): """ Return a hashed version of password using bcrypt """ return self.bcrypt.hashpw(password, self.storage['bcrypt_salt'])