def password(self, password): self._password = generate_password_hash( password, method='pbkdf2:sha512:100001', salt_length=32 )