def match(self, key, creds, salt, **kwargs):
        """Checks whether the user-provided key matches the user's credentials

        :param key: User-supplied key
        :param creds: User's stored credentials
        :param salt: Salt for hashing
        :param kwargs: Extra keyword args for compatibility reason with
                       other auth_type classes
        :returns: True if the supplied key is valid, False otherwise
        """
        return self.encode_w_salt(salt, key) == creds
def match ( self , key , creds , salt , ** kwargs ) : return self . encode_w_salt ( salt , key ) == creds
Checks whether the user-provided key matches the user's credentials

        :param key: User-supplied key
        :param creds: User's stored credentials
        :param salt: Salt for hashing
        :param kwargs: Extra keyword args for compatibility reason with
                       other auth_type classes
        :returns: True if the supplied key is valid, False otherwise