CIDADAXSEC CTF
← Back to CTF
MiscMedium250 points

Three encoding layers

The flag goes through base64, hex, then ROT13. The order is written in the note.

The previous admin left a handover note. They wrapped the flag in three simple encodings so it would not be readable at a glance. There is no encryption, only chained encoding.

Objective

Peel the three encoding layers in order and recover the flag.

Useful tools
CyberChefPythonbase64xxd
Files
encoded.txt
Download
Hints
Hint 1
Open encoded.txt. The note gives the order: base64, then hex, then ROT13. When decoding, you reverse it: base64 → hex → ROT13.
Hint 2
Base64 decoding produces a hexadecimal string. Hex decoding produces text that is still ROT13. ROT13 is a shift of 13; applying it again returns the original text.
Hint 3
Use CyberChef with the recipe “From Base64 → From Hex → ROT13”, or Python: base64.b64decode(blob).decode(), bytes.fromhex(...), then codecs.decode(text, "rot13").