xorxorxor
EASY
, Crypto
DESCRIPTION: Who needs AES when you have XOR?
By looking at python code for encryption we know that length of key is 4 and
flag xor key = encrypted text so, if we do xor of cipher text and first 4 character of flag that we know is "HTB{" we get the key.
(encrypted text) xor 'HTB{' = key
now we have the key to decrypt the flag:
cipher xor key = flag
python code:
flag: HTB{rep34t3d_x0r_n0t_s0_s3cur3}
Last updated
Was this helpful?