CIDADAXSEC CTF
← Back to CTF
CryptoMedium250 points

XOR with a reused key

The hex ciphertext uses repeating-key XOR with the company name as the key.

The Nordvik incident note contains a hex blob. A junior analyst used XOR with the same key for every block. Because the key is short and repeats, the pattern can be recovered.

Objective

Find the XOR key and decrypt the ciphertext until the flag appears.

Useful tools
PythonCyberChefxxdBurp Decoder
Files
xor.txt
Download
Hints
Hint 1
Open xor.txt. The ciphertext is hex. The key is described as the lowercase company name, seven letters: nordvik.
Hint 2
Decode the hex into bytes, then XOR each byte with nordvik repeatedly. Python: bytes(b ^ key[i % len(key)] for i, b in enumerate(ct)).
Hint 3
The result is immediately the flag text. In CyberChef: From Hex → XOR with key nordvik, UTF-8 mode. Submit the flag.