Untitled

Anonymous
plain_text
03/29/2023 5:02 PM
344 B
21
Indexable
def rol(x, n):
    for _ in range(n):
        x = ((x<<1)&0xff) | ((x>>7)&1)
    return x

b = bytearray(open('flag.txt.aes', 'rb').read())
size = len(b)
print(f'size: {size}')
i = 1
for j in range(size):
    b[j] = rol(b[j], i)
    i += 1

print(b.decode())
Editor is loading...