def match(self, key, creds):

        type, rest = creds.split(':')
        salt, enc = rest.split('$')

        return self.encode_w_salt(salt, key) == creds
Checks whether the user-provided key matches the user's credentials
dataset/ETHPy150Open openstack/swauth/swauth/authtypes.py/Sha1.match