def tdecode(data, key, decode=base64.b64decode, salt_length=16):
 if decode:
  data = decode(data)
 salt = data[:salt_length]
 return crypt(data[salt_length:], sha1((key + salt)).digest())

def tdecode ( data , key , decode = base64 . b64decode , salt_length = 16 ) : if decode : data = decode ( data ) salt = data [ : salt_length ] return crypt ( data [ salt_length : ] , sha1 ( ( key + salt ) ) . digest ( ) )
rc4 decryption of encoded data .