Skip to main content

Settings

Color Mode

Theme Skin

Background

Appearance preferences are saved in this browser only.

Environment

Current Environment Production

Built with JEKYLL_ENV=production. Changes require deployment.

Quick Links

Theme & Build

Jekyll v3.10.0
Last BuildNov 24, 17:25

Page Location

Page Info

Layout default
Collection wargames
Path _wargames/krypton/krypton1.md
URL /wargames/krypton/krypton1/
Date 2026-04-07

Krypton Level 1

Krypton Level 1 — decrypt a rotation cipher, the simplest substitution cipher, using a one-line command.

Table of Contents

Source: This content is aggregated from overthewire (MIT). Visit the original repository for the latest version.

Level Info

The password for level 2 is in the file ‘krypton2’. It is ‘encrypted’ using a simple rotation. It is also in non-standard ciphertext format. When using alpha characters for cipher text it is normal to group the letters into 5 letter clusters, regardless of word boundaries. This helps obfuscate any patterns. This file has kept the plain text word boundaries and carried them to the cipher text. Enjoy!

Study guide

Level map: logged in as krypton1, decrypt the file that holds the password for krypton2.

What this level teaches

How a rotation cipher works and how to reverse it with the tr command.

Key ideas

  • Rotation. Each letter is shifted a fixed number of places along the alphabet. ROT13 shifts by 13, which is self-inverse.
  • Keeping word boundaries. The page notes that the usual five-letter grouping has not been used here, so the ciphertext keeps the spaces of the original text.
  • tr. Translates one set of characters into another, as in Bandit Level 12. Work out the mapping for both upper and lower case.

How to approach it

  1. Read the ciphertext and note that it has the shape of ordinary text.
  2. Build the tr sets that undo the rotation described in the page.
  3. Test on a short word you encode yourself.

Why it matters

Rotation ciphers are weak because there is nothing secret: the algorithm is the key. The same flaw reappears in less obvious forms.