Bandit Level 11
Bandit Level 11 — decode Base64 data, learning that encoding is not encryption.
Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.
Level Goal
The password for the next level is stored in the file data.txt, which contains base64 encoded data
Commands you may need to solve this level
grep, sort, uniq, strings, base64, tr, tar, gzip, bzip2, xxd
Helpful Reading Material
Study guide
Level map: logged in as bandit10, find the password for bandit11.
What this level teaches
What Base64 is, how to recognise it, and how to reverse it.
Key ideas
- Encoding vs encryption. Base64 represents arbitrary bytes using 64 safe text characters so they survive email, URLs and JSON. It involves no key and provides no secrecy.
- Recognising Base64. Letters, digits,
+and/, often with=padding at the end, in lines of regular length. base64 -ddecodes; run without-dit encodes.
How to approach it
- Look at the file and note the telltale alphabet.
- Decode it with the
base64command; check the manual for the decode flag. - Try encoding a short phrase and decoding it back to see the round trip.
Why it matters
Base64 appears in HTTP headers, tokens, certificates and email. Mistaking it for encryption is a common real-world security error.