f=open("flag.txt", "r")
flag = f.read()

g = open("key.txt" , "r")
key = g.read()

key = key[0:4]

def enc(text,key):
    encrypted = []
    for i in range(int(round(len(text)/4))):
        shifted = spicy(text[i*4:(i+1)*4],i,key)
        encrypted.append(shifted)
    return encrypted



def spicy(text,offset,key):
    res = []
    for p in range(len(text)):
        res.append(int((ord(text[p])+offset)^ord(key[p])))
    return res

flat_list = []
for sublist in enc(flag,key):
    for item in sublist:
        flat_list.append(item)

f=open("enc.txt","w+")
f.write(str(flat_list))


54305ec2feea5e24929a1aea8257e00086aeab0f
<mask token>


def enc(text, key):
    encrypted = []
    for i in range(int(round(len(text) / 4))):
        shifted = spicy(text[i * 4:(i + 1) * 4], i, key)
        encrypted.append(shifted)
    return encrypted


<mask token>

<mask token>


def enc(text, key):
    encrypted = []
    for i in range(int(round(len(text) / 4))):
        shifted = spicy(text[i * 4:(i + 1) * 4], i, key)
        encrypted.append(shifted)
    return encrypted


def spicy(text, offset, key):
    res = []
    for p in range(len(text)):
        res.append(int(ord(text[p]) + offset ^ ord(key[p])))
    return res


<mask token>

<mask token>


def enc(text, key):
    encrypted = []
    for i in range(int(round(len(text) / 4))):
        shifted = spicy(text[i * 4:(i + 1) * 4], i, key)
        encrypted.append(shifted)
    return encrypted


def spicy(text, offset, key):
    res = []
    for p in range(len(text)):
        res.append(int(ord(text[p]) + offset ^ ord(key[p])))
    return res


<mask token>
for sublist in enc(flag, key):
    for item in sublist:
        flat_list.append(item)
<mask token>
f.write(str(flat_list))

f = open('flag.txt', 'r')
flag = f.read()
g = open('key.txt', 'r')
key = g.read()
key = key[0:4]


def enc(text, key):
    encrypted = []
    for i in range(int(round(len(text) / 4))):
        shifted = spicy(text[i * 4:(i + 1) * 4], i, key)
        encrypted.append(shifted)
    return encrypted


def spicy(text, offset, key):
    res = []
    for p in range(len(text)):
        res.append(int(ord(text[p]) + offset ^ ord(key[p])))
    return res


flat_list = []
for sublist in enc(flag, key):
    for item in sublist:
        flat_list.append(item)
f = open('enc.txt', 'w+')
f.write(str(flat_list))

f=open("flag.txt", "r")
flag = f.read()

g = open("key.txt" , "r")
key = g.read()

key = key[0:4]

def enc(text,key):
    encrypted = []
    for i in range(int(round(len(text)/4))):
        shifted = spicy(text[i*4:(i+1)*4],i,key)
        encrypted.append(shifted)
    return encrypted



def spicy(text,offset,key):
    res = []
    for p in range(len(text)):
        res.append(int((ord(text[p])+offset)^ord(key[p])))
    return res

flat_list = []
for sublist in enc(flag,key):
    for item in sublist:
        flat_list.append(item)

f=open("enc.txt","w+")
f.write(str(flat_list))

