Week 16 Ā· Unit 9.2: My childrenās digital world Ā· 3 lessons
2
Scrambling messages
Digital Literacy 9: Unit 9.2, objectives 9SW.05, 9DW.06
GoalExplain encryption with a simple shift cipher and say why scrambling matters on wireless networks.
New words
plaintext Ā· a message in a form anyone can readciphertext Ā· the scrambled form of a messageencryption Ā· turning plaintext into ciphertext using a method and a keykey Ā· the secret information that locks or unlocks the scrambling
Explanation
Wi-Fi and mobile signals spread through the air. Other devices nearby may be able to pick up what is sent, so private details need protection. Encryption does this by turning plaintext into ciphertext that looks like nonsense. Decryption uses the key to turn it back. A very simple example is a shift cipher: with the key 3, every letter moves three places along the alphabet, so A becomes D. This toy cipher is easy to break, because there are only 25 shifts to try. Real encryption uses mathematics with so many possible keys that trying them all is not practical. When a web address begins with https and shows a lock symbol or similar sign, the data between your browser and that site is scrambled. That does not prove the site is honest, and encryption cannot help if you hand over your password.
Worked examples
A
B
C
D
E
F
G
H
I
J
Plain
A
B
C
D
E
F
G
H
I
J
Cipher
D
E
F
G
H
I
J
K
L
M
A shift cipher with the key 3. Each plain letter is matched with the letter three places later.
Step
Result
Plaintext
SAFE
Key
3
Ciphertext
VDIH
Using the key 3, the word SAFE becomes VDIH. The receiver, who knows the key, moves each letter three places back.
Plain web pages and secure ones look different in the address bar. This address starts with http and has no lock.
Class activity
Cipher swap (pairs, paper). 1) Each partner writes a short plain message of three or four words about a club, such as a school chess club, and picks a key from 1 to 9. 2) Encrypt it letter by letter and write the key on a separate slip. 3) Swap the ciphertexts only and try to decrypt without the key by trying shifts; count your tries. 4) Swap the slips and check. Discuss: why is it a bad idea to send the key together with the ciphertext? Why would a shift cipher never protect a real bank?
Practice
1
Decrypt this message that was encrypted with a shift of 5 forward: MJQU
Ciphertext
Key
MJQU
5
HELP. Move each letter 5 places back: MāH, JāE, QāL, UāP.
2
Encrypt BUS with the key 2.
DWU. BāD, UāW, SāU.
3
Why is it pointless to write the key on the same note as the ciphertext?
Anyone who finds the note can unscramble the message at once, so the scrambling protects nothing. Keep the key separate and secret.
4
A shop page starts with https and shows a lock symbol. Does that prove the shop is honest?
No. It shows that what you send is scrambled on the way to the site, so others on the network cannot read it. It does not show that the shop is truthful or will deliver, so you still judge the site.