GoalSpot unsafe pages and messages, use a Caesar cipher and check a byte with a parity bit.
New words
HTTPS · the safe version of HTTP: the data sent between the browser and the website is encryptedphishing · a trick message or page that tries to make you give away private informationencryption · scrambling data with a key so that only the right person can read itparity bit · an extra bit added to a byte so that the number of 1s is always even
Explanation
A padlock and https:// show that the data between your browser and the website is encrypted, but they do not prove that the owner is honest. To find the owner of a page, read the domain name from the right, up to the first single slash. Scam messages hurry you, frighten you, offer something too good to be true or ask for a password or personal details. Do not click, do not reply and tell a trusted adult. A Caesar cipher shifts every letter by the same number of places, and 25 different shifts are possible, so it is easy to break. Data can also be damaged on its way. With even parity, the sender adds one bit so that every byte has an even number of 1s, and a byte that arrives with an odd number of 1s must contain an error.
plaintext→encrypt with a key→cipher text sent→decrypt with the key→plaintext
Worked examples
Address
Who owns the page?
Good place for a card number?
https://pay.example.net/login
example.net
only an adult may do it, and only if the page is genuine: it has https
https://example.net.pay.example.org/login
example.org, not example.net
no: the real owner is hidden at the end of the name
http://shop.example.com/cart
example.com
no: http has no padlock, so data is sent as plain text
Read the owner of each address from the right-hand end of the domain name. The second address is a trick: it starts with example.net, but its domain name ends with example.org. The third address has no padlock, so a card number typed there could be read on the way.
Encrypt MARKET with a shift of 4: M becomes Q, A becomes E, R becomes V, K becomes O, E becomes I and T becomes X. The cipher text is QEVOIX. To decrypt, move every letter back 4 places.
Data bits
Number of 1s
Parity bit
Byte sent
0101101
4 (even)
0
01011010
1101000
3 (odd)
1
11010001
Adding an even parity bit. The first group has four 1s, which is even, so the parity bit is 0. The second group has three 1s, which is odd, so the parity bit is 1 and the byte now has four 1s. At the other end the receiver counts the 1s in each byte. An odd count means that a bit has flipped.
Class activity
Secret strips (no computer): write the alphabet on two strips of paper. Slide the lower strip so that A sits under the letter that is 7 places along (H). Use the strips to encrypt your first name and one short word, and give them to a partner without the shift. Your partner tries every shift until a word appears. How many tries did it take? Now add an even parity bit to the code of each letter. Use eight coins, with heads for 1, and check that the number of heads is even.
Practice
1
Decide whether each message is safe or a scam, and name the warning signs.
Message
Safe or scam?
Warning signs
(a) “Your class photo order is ready. Collect it at the school office.”
?
?
(b) “FINAL WARNING: your account is locked! Reply with your password within 1 hour to open it.”
?
?
(c) “You won a bike! Send your home address and your age to claim it now.”
?
?
(d) “Chess club moves to room 4 on Tuesday.”
?
?
(a) Safe: it is calm, asks for nothing private and matches what you expect. (b) Scam: it frightens you (locked account), hurries you (1 hour) and asks for a password. (c) Scam: it is too good to be true and asks for your address and age. (d) Safe: it is a simple notice with nothing to click or send.
2
The cipher text UQFSY was made with a Caesar shift of 5. Decrypt it.
Move each letter back 5 places: U to P, Q to L, F to A, S to N and Y to T. The plaintext is PLANT.
3
Add an even parity bit to each group of seven data bits and write the whole byte.
Data bits
Number of 1s
Parity bit
Byte sent
0011001
?
?
?
1011011
?
?
?
0100100
?
?
?
0011001 has 3 ones, so the parity bit is 1 and the byte is 00110011; 1011011 has 5 ones, so the parity bit is 1 and the byte is 10110111; 0100100 has 2 ones, so the parity bit is 0 and the byte is 01001000.
4
Write the keywords for the search ‘How many moons does Mars have?’ Why should you still check the answer in a second place?
Keywords: Mars moons (or Mars number of moons). A search engine or an AI can be wrong, or can use old or unfair data, so a second source shows whether the answer is true.