Unit 7 · Cybersecurity · Lesson 7.9 · Lab 7.9

Lab: Cipher Day + Security Audit

First half: finish your cipher program and crack a partner’s message. Second half: a private audit of your own accounts — and three things you’ll actually change.

Big Idea 5 — Impact of ComputingCED 5.6 · Lab 7.9

Before this lab

No reading. Bring your 7.3 program. Your teacher hands out the Lab 7.9 sheet.

1

Where We Are

People→ Bits→ Programs→ Internet→ Security→ Big Data→ Impact

Security, practiced. The only unit whose success shows up outside the gradebook.

2

First Half — Finish the Cipher

Lab 7.9, Part 1 — Cipher program

1. Test encrypt. Your encrypt must pass these:

CallMust return
encrypt("HELLO, WORLD", 3)"KHOOR, ZRUOG"
encrypt("XYZ", 3)"ABC"
encrypt("MEET AT NOON", 0)"MEET AT NOON"

2. Round trip. decrypt(encrypt(m, k), k) must give back m for every shift 0–25. Write a loop that checks all 26.

3. Crack a partner. Encrypt a short sentence with a secret shift and trade ciphertexts. Run crack; find the English; report the key.

Challenge tier — Vigenère. Use a keyword instead of one shift: each letter of the key gives the shift for one letter of the message, repeating. Check: with key LEMON, ATTACK AT DAWN becomes LXFOPV EF RNHR. Then explain why a short repeating key still eventually loses to someone with enough ciphertext.

AP connection. Testing with known inputs and outputs is how you show a procedure works — exactly what the Create PT written responses ask you to describe.
3

Second Half — Private Security Audit

This page stores nothing and sends nothing. Your checks stay in this browser tab and disappear when you close it. Nobody — including your teacher — sees what you check. Don’t type any password anywhere on this page.

Check each item that is already true for you. Be honest; it’s private.

What you turn in

Your working cipher program, plus a list of three changes you will make — written generally (“turn on MFA for my email”), with no account names, passwords, or details.

4

Connections

Pulls together 7.1–7.8 — every audit item traces back to a lesson in this unit.
Came from 7.3 — the cipher program, finished and tested.
Next in 7.10 — the map, a review, and the Unit 7 test.
← 7.8 Malware and Defenses