Untitled
unknown
plain_text
3 years ago
258 B
11
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...