#!/usr/bin/python

import random


KEY = 'musZTXmxV58UdwiKt8Tp'

def xor_str(x, y):
    if len(x) > len(y):
        return ''.join([chr(ord(z) ^ ord(p)) for (z, p) in zip(x[:len(y)], y)])
    else:
        return ''.join([chr(ord(z) ^ ord(p)) for (z, p) in zip(x, y[:len(x)])])

flag, key = open("flag.enc", "rb").read(), KEY.encode('hex')
enc = xor_str(key * (len(flag) // len(key) + 1), flag)

ef = open('flag.dec', 'wb')
ef.write(enc.decode('hex'))
ef.close()
ccc004ab39d1aa6dd1580985b07f3c9a045e8b7f
<mask token>


def xor_str(x, y):
    if len(x) > len(y):
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x[:len(y)], y)])
    else:
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x, y[:len(x)])])


<mask token>

<mask token>


def xor_str(x, y):
    if len(x) > len(y):
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x[:len(y)], y)])
    else:
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x, y[:len(x)])])


<mask token>
ef.write(enc.decode('hex'))
ef.close()

<mask token>
KEY = 'musZTXmxV58UdwiKt8Tp'


def xor_str(x, y):
    if len(x) > len(y):
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x[:len(y)], y)])
    else:
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x, y[:len(x)])])


flag, key = open('flag.enc', 'rb').read(), KEY.encode('hex')
enc = xor_str(key * (len(flag) // len(key) + 1), flag)
ef = open('flag.dec', 'wb')
ef.write(enc.decode('hex'))
ef.close()

import random
KEY = 'musZTXmxV58UdwiKt8Tp'


def xor_str(x, y):
    if len(x) > len(y):
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x[:len(y)], y)])
    else:
        return ''.join([chr(ord(z) ^ ord(p)) for z, p in zip(x, y[:len(x)])])


flag, key = open('flag.enc', 'rb').read(), KEY.encode('hex')
enc = xor_str(key * (len(flag) // len(key) + 1), flag)
ef = open('flag.dec', 'wb')
ef.write(enc.decode('hex'))
ef.close()

#!/usr/bin/python

import random


KEY = 'musZTXmxV58UdwiKt8Tp'

def xor_str(x, y):
    if len(x) > len(y):
        return ''.join([chr(ord(z) ^ ord(p)) for (z, p) in zip(x[:len(y)], y)])
    else:
        return ''.join([chr(ord(z) ^ ord(p)) for (z, p) in zip(x, y[:len(x)])])

flag, key = open("flag.enc", "rb").read(), KEY.encode('hex')
enc = xor_str(key * (len(flag) // len(key) + 1), flag)

ef = open('flag.dec', 'wb')
ef.write(enc.decode('hex'))
ef.close()