def obsfucate(key, clear):
    enc = []
    for i in range(len(clear)):
        key_c = key[i % len(key)]
        enc_c = chr((ord(clear[i]) + ord(key_c)) % 256)
        enc.append(enc_c)
    return base64.urlsafe_b64encode("".join(enc))
dataset/ETHPy150Open lavr/python-emails/emails/testsuite/conftest.py/obsfucate/original