Skip to main content
Computing with Bit

Secret codes

Ages 7 to 11
Bit the robot says: Hide a message by shifting the letters, then crack a code.

Caesar cipher lab

ABCDEFGHIJKLMNOPQRSTUVWXYZDEFGHIJKLMNOPQRSTUVWXYZABC

Encrypted

Phhw ph eb wkh oleudub dw oxqfk

Anyone with the key can decrypt it by shifting back 3: "Meet me by the library at lunch". Without the key, there are only 25 keys to try.

Letter count in the encrypted message

In English, E is usually the most common letter. If one letter towers over the rest here, it may stand for E: another way to break the cipher.

Who can help?

If something online makes you feel worried, upset or unsure, you are not in trouble. Tell a grown-up you trust: a parent or carer, a teacher, or another adult at school.

  • Childline

    0800 1111

    Talk to someone about anything that is worrying you, online or offline. It is free, and you do not have to give your name.

  • CEOP Safety Centre

    Tell the police's child protection team if you are worried about the way someone has been talking to you online.

If you or someone else is in danger right now, call 999.

For grown-ups

Ideas for using this game with children
  • Pairs swap encrypted messages and a key, then swap messages without the key and race to crack them.
  • Ask why a password with only 25 possibilities would be just as easy to break.