Skip to content
PURPLEDUEL

Encodings & secrets path

10 labs · Base64, hex, ciphers

Encodings & secrets teaches a distinction that saves a lot of data: encoding is not encrypting. Base64, hexadecimal, ROT13 and mirrored text change how information looks but do not protect it, because anyone can turn it back into plain text without a key. In the labs you recognise these formats by their look, peel them off one layer at a time even when they are stacked, extract readable text from a compiled program and understand why real protection needs real encryption, salted hashes and a secrets manager.

The labs, in order

  1. Base64 is not a secret

    easy · 300 XP

    There is a message in the folder that looks like gibberish: letters, digits and an '=' at the end. A careless technician "protected" it this way. Find out what it hides and recover the flag.

    Requires: Reading in pieces.

  2. Hexadecimal

    easy · 350 XP

    A traffic recorder captured a message and saved it as a long string of digits and letters from a to f. Learn to read hexadecimal, turn the capture back into text and recover the flag.

    Requires: Base64 is not a secret.

  3. Caesar's cipher

    medium · 600 XP

    At the old market notice board the Crow leaves his messages: one is written with a cipher that shifts the letters, another one "in a mirror". Decipher both and find the vault code.

    Requires: Hexadecimal.

  4. Secrets inside an executable

    medium · 600 XP

    A company handed you a compiled program, the vault, and swears nobody can read its secrets. Prove it wrong: extract the service code left inside the file.

    Requires: Hexadecimal and Searching text.

  5. Layer upon layer

    medium · 600 XP

    The Crow sealed his message like an onion: several encodings, one on top of the other. One command is not enough: chain several with the pipe and peel off the layers in the right order.

    Requires: Caesar's cipher and Pipes and filters.

  6. The final riddle

    hard · 1000 XP

    The Crow has vanished, leaving a locked chest and a few clues scattered across several files: a legend, an order, a program. Rebuild the riddle, reopen the chest and find out why encoding is not encrypting.

    Requires: Secrets inside an executable and Layer upon layer.

  7. Caesar, but by how much?

    medium · 600 XP

    After ROT13 the Crow changed his mind: now he shifts the letters by a number he chooses himself, from 1 to 25, and does not say which. But he has a habit that gives him away... Find the key and read the letter with the treasure code.

    Requires: Caesar's cipher.

  8. The web speaks in percent

    medium · 600 XP

    In the request log of an online shop someone sent a message hidden in a search written entirely in codes with the % symbol, hoping the site's filter would not recognize it. Find the request and bring it back to plain text.

    Requires: Layer upon layer.

  9. The token that talks

    hard · 1000 XP

    The online shop Faro Shop recognizes users by a token written in the session cookie. The alarm flags a suspicious visitor in the admin panel: find out which token they used and what a careless programmer had forgotten inside it.

    Requires: The web speaks in percent and Layer upon layer.

  10. Fingerprints that can be guessed

    hard · 1000 XP

    A company's user database has fallen into a stranger's hands: inside there are not the passwords but their fingerprints (hashes). Are they really safe? Find out how long an old fingerprint takes to reveal its password.

    Requires: The final riddle and The token that talks.

Commands in this path

Along this path the simulated terminal has you use these commands: cat, base64, xxd, tr, rev, file, strings, grep, cut and curl. Each lab page explains what they are for.

Learn more with the guides

All guides

The other paths

The PurpleDuel labs