Secret Letter

A man at a desk decoding a letter with a magnifying glass

Encrypts a message with the name of whoever is writing it. Only someone who knows who sent it can open it.

Everything happens in the browser, nothing is sent anywhere and nothing is stored. It is a Vigenère cipher and the key is the sender’s name: every letter of the message moves along by a letter of the name. The result is plain letters, with spaces, commas and numbers left as they were, so a letter can be copied out by hand and worked out on a computer later. Accents and capitals are lost, and only the letters of the name count.

The cipher is a classic one and it can be broken, which here is the point. The key is a weak spot too: a name is short, often easy to guess, and every letter you send carries the same one. So this is a game, not a safe. I picture it at a summer camp or in a treasure hunt, where working out who wrote the thing is half the fun.