code: def ValidatePassword(self, password):
          
          password = to_aes_key(password)
          return hashlib.sha256(password).digest() == self.LoadStoredData('PasswordHash')
docs: Validates if the provided password matches with the stored password.
  
          Args:
              password (string): a password.
  
          Returns:
              bool: the provided password matches with the stored password.