def ValidatePassword(self, password):
        """
        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.
        """
        password = to_aes_key(password)
        return hashlib.sha256(password).digest() == self.LoadStoredData('PasswordHash')
def ValidatePassword ( self , password ) : password = to_aes_key ( password ) return hashlib . sha256 ( password ) . digest ( ) == self . LoadStoredData ( 'PasswordHash' )
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.