Description
My key generator is broken but AES is so secure it probably doesn't matter.... right? nc 155.248.210.243 42191
Attachments
https://cybersharing.net/s/3fdbf9bd401318b9e4caccb40d310e4b
Writeup
This is a Feistel cipher where each key is the same in the key scheduling, this allows you to turn the encryption oracle into a decryption oracle by just reversing the chunks in the output
''
from Crypto.Util.number import long_to_bytes, bytes_to_long
A = long_to_bytes(int(input("print flag result?")))
A = A[16:] + A[:16]
print("Enter this into encrypt message",bytes_to_long(A))
B = long_to_bytes(int(input("encrypt message result?")))
print(B[16:] + B[:16])
''
Flag
ictf{using_1_k3y_1n_f31573l_lol}