### The Scholar Who Counted Letters
Ancient Secrets · Code-Breaking
For centuries, generals and kings trusted a simple trick: swap every letter in a secret message for a different symbol, and nobody can read it. Then, around 850 CE, an Arab scholar named Al-Kindi working at the House of Wisdom in Baghdad ruined their fun forever.
Al-Kindi realized that every language has a mathematical fingerprint. Some letters are total crowd-pleasers, while others barely show up. In English, the letter E is everywhere—making up about 13 percent of all written text—while Z mostly sits on the bench.
Swapping letters for secret symbols does not change how often they appear. Al-Kindi explained that if you take a normal page of writing, count the most common letters, and compare them to the most common symbols in a long secret message, the disguise falls apart. If the symbol Q is everywhere, it is probably hiding an E.
This method, called frequency analysis, does not crack codes instantly—you still need a long enough message and clever guesswork to fill in the blanks. Even so, Al-Kindi's manuscript birthed the science of code-breaking, forcing code-makers to invent wild new machines just to keep up.