1001Ferramentas
πŸ›οΈSecurity

Caesar Cipher Brute-Force (All 25 Shifts)

Crack a Caesar cipher by showing all 25 possible shifts at once. Great for breaking coded messages, puzzle games and studying cryptography.

Tabela 1-25

β€”

All 25 Caesar shifts at once

The Caesar cipher shifts each letter a fixed number of places through the alphabet. Since only 25 useful shifts exist β€” the twenty-sixth returns the original text β€” brute-forcing it is trivial: generate all 25 possibilities and see which makes sense. That attack has its own name in classical cryptanalysis, exhaustive search, and this cipher is its canonical example.

Paste the text and the page produces all 25 possible readings at once, numbered by shift. Someone enciphering picks the line matching the agreed shift; someone breaking it scans the list until they find the one forming words. On a text of a few words that takes seconds, and it is exactly that speed the page makes obvious.

One useful detail: shift 13 is ROT13, which has the property of being its own inverse β€” apply it twice and you get the original back. It was never a protective cipher, but a convention for hiding puzzle answers and spoilers from casual view. Note too that spaces and punctuation are preserved, and the shape of the words alone gives away a good deal of a short text.

Frequently asked questions

Why 25 shifts and not 26?
Because shift 26 returns exactly the original text: every letter goes right round and lands where it started. It exists mathematically but enciphers nothing, which is why the list runs from 1 to 25.
Did Julius Caesar really use this?
Suetonius reports that he shifted three places in military correspondence, and that is where the name comes from. Context helped more than the cipher: a good share of his adversaries were illiterate, so the mere fact of it being written already offered reasonable protection.
Does it work in other alphabets?
The idea works in any alphabet, changing only the cycle length. This page works with the 26 unaccented Latin letters; accented letters and other marks pass through unshifted, which preserves readability but also leaves visual clues for an attacker.

Related Tools