HackBlue

Tools · CTF categories for beginners · 20 / 26

Beginner crypto challenges: length is not the algorithm

A crypto challenge file gives you a string and a length. The alphabet and the length are measurements. They do not name a cipher, a hash, or an encoding. Write what you measured, and leave the method unclassified until you have a reason.

9 min read · practice only with authorization

Measure before you name

Count the characters. Note the alphabet: only digits and a through f, or letters with padding, or ordinary words. Those notes describe the file. They do not say which method produced it. Two methods can emit strings of the same length.

A label in the challenge text such as “cipher” is the author’s word. It is not a proof of the method. Copy the label as a label.

What you do not conclude

Do not title the note with an algorithm because the string is 32 bytes, 64 hex characters, or a round number of letters. Do not run a decoding step you cannot explain. If you later find a reason, write the reason next to the name.

This page does not recover a key and does not turn the string into a flag. The beginner step is classification, and classification can end as “not yet classified.”

What to write down

File the filename, the length, the alphabet, and the author’s label if there is one. File the method only when you can point at a reason in the challenge text or in a check you can repeat. Otherwise write “method not classified.”

Lab: sixty-four hex characters and no name

cipher.txt from a practice bundle is 64 characters, digits and a through f only. The challenge title says “hidden.” A draft names it AES because 64 hex characters is 32 bytes, and starts a write-up titled with that algorithm.

The note says length 64, alphabet hex, author label “hidden,” method not classified. Thirty-two bytes is arithmetic, not an identification. The write-up title stays unclassified until a later check gives a reason you can cite.

Snippet
file: cipher.txt
length: 64 characters
alphabet: 0-9 and a-f
author label: hidden
bytes if this is hex: 32
method: not classified
not: AES because of the length

Diagram

What a crypto file lets you write on day one

Measurements first. The algorithm waits for a reason.

  • Length

    How long the string is. A count, not a cipher name.

  • Alphabet

    Which characters appear. Still not the method.

  • Author label

    The word on the challenge. Quote it as a label.

  • Method

    Only after you can cite a reason. Otherwise unclassified.

Check yourself

1. A practice file is 64 hex characters. What do you know from that alone?

2. The challenge title says “hidden.” What is that word?

3. You cannot yet explain a method. What do you put in the note?