def deobsfucate(key, enc):
    dec = []
    key = to_native(key)
    enc = base64.urlsafe_b64decode(enc)
    for i in range(len(enc)):
        key_c = key[i % len(key)]
        if is_py3:
            c1 = enc[i]
        else:
            c1 = ord(enc[i])
        dec_c = chr((256 + c1 - ord(key_c)) % 256)
        dec.append(dec_c)
    return "".join(dec)
    assert 0
dataset/ETHPy150Open lavr/python-emails/emails/testsuite/conftest.py/deobsfucate/original