Lesson plan: Asymmetric Keys

AP Cybersecurity · Unit 5 Securing Applications and Data · Topic 5.4 Asymmetric Cryptography · Practice set

At a glance

Suggested time
2 class periods (45 min)
Pacing
First of two sets for Topic 5.4. The CED gives Topic 5.4 five class periods; this plan suggests 2 for this set and 3 for Key Length and Public Key Commands, the third of them CED Scenario 5B. The CED does not divide the topic among sets; that split is this plan's suggestion. This set covers LO 5.4.A only.
Before this set
Cryptography and Symmetric Encryption (what encryption and a key are, and AES with its one shared key). The lesson's last paragraph calls a key's fingerprint a short hash of the public key; hashing comes from Hashing and Password Storage (Unit 4).
Skills
2.A Identify security controls, and explain how they mitigate risks.

The one idea: Each receiver generates a key pair, publishes one key and keeps the other secret. Whatever one key encrypts, only its partner decrypts. To send data only one party can read, encrypt with that party's public key. If the private key leaks, the whole pair is replaced.

Day by day

Day 1 · The key pair and sending45 min

Day 2 · A leaked key and proof of origin45 min

Differentiation

If students are struggling
Project the CED's Figure 5.4 (printed page 138): plaintext, the public key, ciphertext, the private key, labeled "Different Keys". Draw two parties beside it, each with a public key on a sign and a private key in a pocket, and have students point to the key for each step of Problem 2 🔒 and Problem 3 🔒 before choosing. Hold Problem 8 🔒 for a second Do together after Problem 5 🔒, asking who holds the key that decrypts it.
Extension
Students retell the DigiNotar breach as a chain of keys: whose private key signed the forged certificate, whose public key the browsers used to check it, and what Chrome checked that the others did not. Then they name one safeguard from the lesson that would not have stopped the attack and explain why.
Vocabulary support
asymmetric encryption, key pair, public key, private key, mathematical inverse, ciphertext, certificate, certificate authority, hardware security module, fingerprint.

From the course framework

LO 5.4.A Determine the appropriate asymmetric key to use when sending or receiving encrypted data.

  • 5.4.A.1 Asymmetric encryption allows users to communicate securely without prearranging a shared secret key.
  • 5.4.A.2 When using asymmetric encryption, each entity that will be receiving data must first generate a key pair. Key pairs are binary strings of equal length that are generated at the same time through a mathematical process. One key is designated as the public key and the other as the private key. The keys are mathematical inverses of each other—each key reverses its partner. Either key can be used to encrypt information, but only the other key in the key pair will then be able to decrypt it.
  • 5.4.A.3 Once the receiver generates the key pair, the private key must be stored securely. If the private key is exposed, shared, stolen, corrupted, or compromised the key pair must be deleted and a new key pair must be generated, because the security of the encryption algorithm rests on the security of the private key. The public key is published for anyone to view and use.
  • 5.4.A.4 To send information securely to someone, the sender will use the receiver's public key to encrypt the data and send it. Only the receiver who has the private key will be able to decrypt and read the information.

Framework example: CED Figure 5.4 (printed page 138): the plaintext "The red fox jumps over the blue dog" is encrypted with the public key, sent as ciphertext, and decrypted with the private key, under the label "Different Keys".