Krypton Level 0 → Level 1

Nerd Cafe

1. Level Info

Welcome to Krypton! The first level is easy. The following string encodes the password using Base64:

S1JZUFRPTklTR1JFQVQ=

Use this password to log in to krypton.labs.overthewire.org with username krypton1 using SSH on port 2231. You can find the files for other levels in /krypton/

2. Understand the challenge

The page states:

“The following string encodes the password using Base64:”

S1JZUFRPTklTR1JFQVQ=

Your task is to decode this Base64 string to obtain the SSH password for user krypton1.

3. What is Base64?

Base64 is not encryption—it’s an encoding scheme used to represent binary data as ASCII text.

Key properties:

  • Uses characters: A–Z a–z 0–9 + /

  • Often ends with = padding

  • Easily reversible (decoded)

So the solution is simply to decode the string.

4. Practical Example: Base64 Encoding in Action

Scenario

You want to safely transmit the text:

over a channel that only supports printable ASCII characters (for example: email headers, HTTP headers, or config files).

Step 1: Start with plain text

Each character is stored as bytes (ASCII):

Character
ASCII (decimal)
Binary

H

72

01001000

E

69

01000101

L

76

01001100

L

76

01001100

O

79

01001111

Combined binary stream:

Step 2: Split into 6-bit chunks

Base64 works on 6-bit blocks (because 2⁶ = 64):

Pad with zeros to complete the last block:

Step 3: Convert 6-bit blocks to decimal

Binary
Decimal

010010

18

000100

4

010101

21

001100

12

010011

19

000100

4

111100

60

Step 4: Map to Base64 alphabet

Base64 index table starts like this:

Now map the values:

Decimal
Base64 char

18

S

4

E

21

V

12

M

19

T

4

E

60

8

Result so far:

Step 5: Add padding (=)

Original data length was not a multiple of 3 bytes, so Base64 adds padding:

Final encoded result

5. Decode the Base64 string

On Linux / macOS:

Output:

6. Solution (password)

7. Log in to the next level

Use SSH with the credentials provided by the challenge.

8. Why this level exists

This level teaches you that:

  • Encoding ≠ encryption

  • Always identify the transformation used

  • Simple cryptography challenges often test recognition, not brute force

💖 Support Our Work

If you find this post helpful and would like to support my work, you can send a donation via TRC-20 (USDT). Your contributions help us keep creating and sharing more valuable content.

circle-check

Thank you for your generosity! 🙏

Keywords

Base64, encoding, decoding, ASCII, binary, bytes, padding, cryptography, cryptanalysis, plaintext, ciphertext, transformation, data representation, ASCII-safe, reversible, SSH, OverTheWire, Krypton, challenge, CTF, nerd cafe , نرد کافه

Channel Overview

🌐 Website: www.nerd-cafe.irarrow-up-right

📺 YouTube: @nerd-cafearrow-up-right

🎥 Aparat: nerd_cafearrow-up-right

📌 Pinterest: nerd_cafearrow-up-right

📱 Telegram: @nerd_cafearrow-up-right

📝 Blog: Nerd Café on Virgoolarrow-up-right

💻 GitHub: nerd-cafearrow-up-right

Last updated