def METHOD_NAME(str_to_dec, Key):
    dec_xor = ""
    first_dec = base64.b64decode(str_to_dec)
    len_first_dec = len(first_dec)
    for i in range(len_first_dec):
        Key = Key + str(Key[i % len(Key)])
    a_list = [chr(ord(chr(a)) ^ ord(b)) for a, b in zip(first_dec, Key)]
    dec_xor = "".join(a_list)
    third_dec = base64.b64decode(dec_xor)
    tocut = str(third_dec)
    cut = tocut[2:-1]
    return cut