def hash(string): print crypt.generate_password_hash(string)
def set_password(self, password): self.password = crypt.generate_password_hash(password)