For teachers, librarians and club leaders
Free, interactive lessons on codes, ciphers and everyday online safety. They run in the browser, with no sign-up and no account.
Free, interactive lessons on codes, ciphers and everyday online safety. They run in the browser, with no sign-up and no account.
These lessons show how codes and ciphers work, from a shift cipher about 2,000 years old to the six-digit codes on a phone. Others cover how to deal with a scam message or a data breach notice. Students try each idea themselves, in the browser.
The lessons are free. There is nothing to install, no sign-up and no account. MELKEM INC. is a software company in the Greater Toronto Area. MELKEM makes MELKEM Authenticator, a free iPhone app that some of the Notes mention, and the link called Authenticator in the menu at the top of every page leads to its page. The pages also link to MELKEM’s social accounts and to other sites.
This is what we can say about these pages, and we have checked each line against them.
The wording for the games is also in our terms.
Levels and times are suggestions. We based each level on the page’s reading level, estimated by a standard formula (Flesch–Kincaid) and checked by eye, and on the maths it uses. We estimated times at about 200 words a minute for reading, plus time to try the tools. You know your students, so try a lesson yourself before you set it.
| Lesson | What it teaches | Suggested level | About how long | Phones and tablets |
|---|---|---|---|---|
| Caesar cipher | Shifting letters to code and decode a message, trying every shift to read one, and the remainder (mod 26) behind the wrap-around. | Grades 6 to 9 | 10 to 15 minutes | Yes |
| Vigenère cipher | Using a keyword to change the shift for each letter, and why a repeating keyword leaves patterns behind. | Grades 7 to 10 | 15 to 20 minutes | Yes |
| Crack a code by counting letters | Counting the letters of a Caesar-coded message and comparing them with typical English to find the shift, and why a longer message helps. | Grades 7 to 10 | 10 to 15 minutes | Yes |
| The Enigma machine | How a working Enigma I scrambled each letter with rotors, a reflector and a plugboard, and why a letter never became itself. | Grades 7 to 12 | 15 to 20 minutes | Yes |
| The one-time pad | A code whose key is random, as long as the message and used once. Adding letters and wrapping at 26, why the same code could say anything, and what goes wrong when a pad is used twice. | Grades 9 to 12, and adults | 20 to 30 minutes | Yes |
| Fingerprints for data | What a SHA-256 fingerprint is: the same text always gives the same one, a tiny change gives a very different one, and nobody knows a practical way to run it backwards. | Grades 8 to 12 | 10 to 15 minutes | Yes |
| Diffie–Hellman key exchange | How two people agree on a shared secret while everyone watches, with colours and then with small numbers (remainders and powers). | Grades 9 to 12 | 15 to 20 minutes | Yes |
| ML-KEM | A newer standard for sharing a secret key. Noisy equations (learning with errors), a toy key exchange with rounding, and what the real ML-KEM adds. MELKEM is a company name. It sounds like ML-KEM, but MELKEM Authenticator doesn’t use ML-KEM or post-quantum cryptography. | Grades 11 and 12, and adults | 30 to 40 minutes | Yes |
| How a 6-digit code is made | A two-factor code worked out step by step from the clock and a demo key, and why codes expire. | Grades 8 to 12 | 10 to 15 minutes | Yes |
| Morse code and binary | Writing a message in Morse code, with sound and a light, and in binary. Both are codes: they hide nothing. | Grades 5 to 9 | 15 to 20 minutes | Yes. The Morse tool can play sound. |
| How long to guess a password | How length and the kinds of characters change how many passwords are possible and how long it would take to try them all, and why words can work as well as characters. | Grades 8 to 12 | 15 to 20 minutes | Yes |
| Selfie won’t upload? (a Note) | Why a selfie or photo upload can fail when an iPhone saves a photo as HEIC, how to save JPEG instead, and how to check a request before verifying. | Grades 8 to 12, and adults | 5 minutes | Yes |
| Got a data breach notice? (a Note) | Five steps for when a data breach notice arrives, with a real notice drawn beside a fake one. | Grades 9 to 12, and adults | 10 to 15 minutes | Yes |
| Spot the Scam (a daily game) | Tapping the red flags in one made-up message in 45 seconds, or with no timer. Topics include shopping, banking, a dating app, crypto, gift cards and a family member being impersonated. The rounds get harder through the week, and on some Thursdays, Fridays and Sundays the made-up message is an ordinary one, with no red flag in it. After a round, “Play again (not scored)” lets the next student try the same message without seeing the answers or changing the previous student’s streak. | Grades 7 to 12, and adults | 1 to 3 minutes a round | Yes |
“Yes” means the page’s layout fits at phone and tablet widths. See the classroom notes below for what we did and did not test.
Each path is a suggested order. Use some of it or all of it.
Counting letters works on Caesar messages, so some classes do it straight after step 1.
Here is what we have tested, and what we have not.
Write to john@melkem.com.