← Codes you can try

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.

What it is

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.

What happens to what students type

This is what we can say about these pages, and we have checked each line against them.

  • Nothing a student types is sent anywhere. Each lesson page and each game tells the browser to block any connection the page’s own script tries to make once the page has loaded, and our automated tests in real browsers confirm that no requests are made. The two Notes with a search box are covered below. The password lesson never asks for a password.
  • Nothing a student types is stored. The lessons keep nothing in the browser. The exceptions are the two daily games, Spot the Scam and Code Lock. Each keeps these in that browser, on that device: its current streak and its best streak, a points total, the date it was last played (a date, with no time of day), one dated result for each of the last 60 days played, and whether “No timer” is on. A day’s result is the points and a few counts. In Spot the Scam that is the row of coloured squares and how many red flags were found out of how many there were. In Code Lock it is the moves, the timer rings and whether it was a speed win. Neither game stores a name or anything a student typed, and neither sends any of it to us. Each game has its own “Clear my game data” button, and it erases that game’s data and no other: the button in Spot the Scam does not erase Code Lock’s, and the button in Code Lock does not erase Spot the Scam’s. On a shared computer, the data stays with that browser until it is cleared. After a round, “Play again (not scored)” in either game plays the same message or code again for the next student: it saves nothing and leaves the previous student’s streak and score as they were. The copy buttons on the Caesar, Vigenère and fingerprint lessons, in the 2FA explainer (which copies its demo key) and in both games, and the share button in each game, hand text to the device when a student taps them, and not before.
  • No ads from other companies, no cookies, no analytics or tracking scripts. The pages load their fonts and pictures from melkem.com and nothing from any other website.
  • Share, copy-link and download buttons. Every lesson page, every Note, this page, the Codes you can try page and the Facts page have a Share button. Where the browser has a share sheet, the button opens the device’s own. Where it does not, the button copies the page’s web address and says “Link copied”. Either way it passes on the page’s public address and title and nothing else: not anything a student typed, chose or got as a result, and no query string added to the address. It does nothing until a student taps it, it makes no request of its own, and the address goes to whichever app the student picks. On the Facts page a student can also copy the link to a single fact and download the two videos as MP4 files. A download is an ordinary file from melkem.com.
  • The search box. The two Notes in the table below, the selfie Note and the data breach Note, have a round button in the bottom corner that opens a search box. It looks answers up in a file the page loads from melkem.com, and what a student types in it stays in the browser.
  • Links to other sites. Lessons list their sources, and every page ends with links to MELKEM’s social accounts and to another website. Those links lead to other websites, which have their own rules.

The wording for the games is also in our terms.

Every lesson, at a glance

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.

The lessons: what each teaches, a suggested level, about how long it takes, and whether it works on phones and tablets
LessonWhat it teachesSuggested levelAbout how longPhones and tablets
Caesar cipherShifting 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 910 to 15 minutesYes
Vigenère cipherUsing a keyword to change the shift for each letter, and why a repeating keyword leaves patterns behind.Grades 7 to 1015 to 20 minutesYes
Crack a code by counting lettersCounting 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 1010 to 15 minutesYes
The Enigma machineHow a working Enigma I scrambled each letter with rotors, a reflector and a plugboard, and why a letter never became itself.Grades 7 to 1215 to 20 minutesYes
The one-time padA 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 adults20 to 30 minutesYes
Fingerprints for dataWhat 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 1210 to 15 minutesYes
Diffie–Hellman key exchangeHow two people agree on a shared secret while everyone watches, with colours and then with small numbers (remainders and powers).Grades 9 to 1215 to 20 minutesYes
ML-KEMA 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 adults30 to 40 minutesYes
How a 6-digit code is madeA two-factor code worked out step by step from the clock and a demo key, and why codes expire.Grades 8 to 1210 to 15 minutesYes
Morse code and binaryWriting a message in Morse code, with sound and a light, and in binary. Both are codes: they hide nothing.Grades 5 to 915 to 20 minutesYes. The Morse tool can play sound.
How long to guess a passwordHow 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 1215 to 20 minutesYes
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 adults5 minutesYes
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 adults10 to 15 minutesYes
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 adults1 to 3 minutes a roundYes

“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.

Three lesson paths

Each path is a suggested order. Use some of it or all of it.

In the classroom

Here is what we have tested, and what we have not.

  • Browsers. The lessons are ordinary web pages in a normal browser, with nothing to install. We test them in the engines behind Chrome, Safari and Firefox, using automated browsers on a Mac. We have not yet tried them on a school Chromebook or an iPad.
  • Phones and tablets. We check each page at screen widths from 320 px (a small phone) to 1280 px, including 768 px (a tablet). No page scrolls sideways at any of them. On a narrow screen one picture, the alphabet on the letter-count page, scrolls sideways inside its own box so that its numbers can be read.
  • Large text. We also check each page with the browser’s text enlarged to 200%, and to 400% and 500%, and the result screens of both games at 200% and 400%. No page scrolls sideways.
  • Screen readers. We have not tested the lessons with screen reader software. The pages use real headings, labelled boxes and buttons, and descriptions for pictures, and our automated checks look at colour contrast, button size and picture descriptions. That is not the same as a test with a screen reader, so please try a lesson with one before you rely on it.

Questions or feedback

Write to john@melkem.com.