def check_password(self, plain_text): return hash_password(plain_text) == self.hashed_password
def set_password(self, plain_text): self.hashed_password = hash_password(plain_text)