Skip to content
World 1 · Substitution · 7 min

Keyword substitution

Any shuffle of the alphabet

Teaching this? Open projector mode

Why move every letter the same distance? A substitution cipher uses any shuffled alphabet as the key. To make it easy to remember, write a keyword first (dropping repeated letters), then the rest of the alphabet in order.

The keyword ZEBRAS gives:
ZEBRASCDFGHIJKLMNOPQTUVWXY
so A→Z, B→E, C→B, D→R …

Loading 3D lab…

There are 26! (about 4 × 10²⁶) ways to shuffle the alphabet. That is far too many to try one by one. Yet substitution ciphers were broken for centuries. Each plaintext letter always becomes the same cipher letter, so the letter counts survive. You will use that in World 3.

Check yourself

With the keyword ZEBRAS, what does the plaintext letter A become?

Check yourself

Why is a huge number of keys not enough to make a cipher safe?

0 of 3 required activities complete. Finish each task and quiz.Next lesson →

Report a mistake

What is wrong?
0 / 2000 · at least 10 characters
Sent along with your report
  • Page
  • About Keyword substitution — Codes & Ciphers Lab · cryptography/keyword-substitution
Plus your browser type. Reports go to our support system; see the privacy notice.