Videos / Codes and Ciphers

Substitution Ciphers Explained: How to Crack the Aristocrat

The letter-swap cipher that opens the test — solve it fast and the clock pays you back.

From Goggles On, OlyPrep's free YouTube channel · 5:21Watch on YouTube

§01 / Test yourself

Check what you just watched.

Ciphers are learned by solving them. Try one in the Cipher Lab: it is free and needs no account.

The Cipher Lab has every cipher from the video, with practice messages to crack.

Open the Cipher Lab
§02 / Transcript

Maya: Today we're cracking the aristocrat, the letter-swap puzzle that opens up a codebusters test.

James: It's a secret message where every letter has been traded for a different letter, all the way through.

Maya: So the message might look like a wall of nonsense, but there's a hidden order underneath, and we can find it.

James: Let's start with the swap itself. In an aristocrat, one letter always stands in for another letter, every single time it shows up.

Maya: So if the letter E got swapped for the letter Q, then every E in the whole message became a Q. Same swap, over and over.

James: And here's a rule that really helps: no letter is ever allowed to swap for itself. If E is really an E, that's not allowed here.

Maya: The message keeps its spaces and its punctuation exactly where they were, so you can still see where words start and stop.

James: That's a big deal. It means we already know how long each word is, even before we know what it says.

Maya: Some aristocrats give you a hint, like telling you that one letter already stands for another one, as a starting clue.

James: But some don't give any hint at all, so you're starting from nothing but the pattern of the letters.

Maya: That's when frequency analysis comes in. In regular English writing, some letters show up a lot more than others.

James: The letter E is the most common letter in English by far. After that come letters like T and A, then O, I, and N.

Maya: So if we count up all the letters in the secret message and find which symbol shows up the most, that symbol is a strong guess for E.

James: It's like counting how many kids in a classroom are wearing blue versus wearing red. Whichever color you see the most, that's the popular one.

Maya: Right, and the same idea works for the secret message. The most popular symbol is probably standing in for the most popular letter in English.

James: This doesn't crack the whole thing at once, but it gives us a really good first guess to test out.

Maya: After frequency, we look for pattern words, which are words we can recognize just by their shape.

James: The best one is a three-letter word that shows up everywhere in English writing: T-H-E.

Maya: So if we spot a three-letter word in the secret message, and one of its letters we already suspect is E, we can test whether the other two letters make sense as T and H.

James: Once we find one THE, we usually find more, because that word shows up again and again in real sentences.

Maya: Another good pattern word is A-N-D, the three-letter word that joins ideas together, like "cats and dogs."

James: If we spot another common three-letter word in the puzzle, testing whether it's AND is often worth trying.

Maya: There's one more shape to watch for: doubled letters, when the same letter sits right next to itself twice in a row.

Maya: So in the secret message, if you spot a symbol that repeats itself twice in a row, that's a clue the real letter underneath is one that commonly doubles up, like L, S, T, or O.

James: None of these clues solve the puzzle by themselves. It's more like solving a jigsaw puzzle, where each clue narrows things down a little more.

Maya: You might guess E from frequency, then spot THE, which gives you T and H too, and suddenly three letters are solved at once.

James: Then once a few letters are filled in, other words start to look familiar, even the ones that don't have obvious patterns.

Maya: It's a bit like filling in a crossword. The first answer is the hardest, but each new letter makes the next word easier to guess.

James: And remember, since no letter can decode to itself, once you know what E really is, you also know the real letter isn't hiding as its own symbol.

Maya: That's a small rule, but it quietly rules out wrong guesses as you go, which is helpful.

James: One more thing worth remembering: aristocrats are different from ciphers like Atbash or Caesar, which shift the whole alphabet by one simple rule.

Maya: In an aristocrat, there's no single shift number to find. Each letter got its own personal swap, so every letter has to be worked out with clues like these.

James: That's also different from puzzles like Baconian or Porta, which use symbols or keywords instead of a straight letter-for-letter swap. Those are their own topics for another day.

Maya: So, to sum up the aristocrat: it's a monoalphabetic substitution, meaning one whole alphabet gets swapped for another, letter by letter, and it stays that way the entire message.

James: Spaces and punctuation stay put, no letter ever stands for itself, and sometimes you get a hint, sometimes you don't.

Maya: Without a hint, we lean on frequency, since E, T, A, O, I, N, S, H, and R are the most common letters in English writing.

James: And we watch for pattern words like THE and AND, plus doubled letters like the two Ts in "sitting."

Maya: The biggest takeaway is that a secret message isn't random. English has patterns, and those patterns leak through even after every letter gets swapped.

James: So the aristocrat isn't about guessing blindly. It's about noticing what's common, testing it carefully, and letting one solved letter lead you to the next.