Easier to read with cream paper, a tint, more contrast or larger text? Choose your colours and text, once, for every page.

Preview

DI 1.22; NC 1.21; DS 1.21: Encryption as a risk control: symmetric or asymmetric

This is the first page of the lesson. Read it and have a go at the activities. The rest is in the full lesson.

50 minutes

A parcel with a lock

A help desk sends a spreadsheet of staff phone numbers to a supplier. The email is copied by a thief on the way.

If the file is locked, the thief gets a mess. If it is not locked, the thief gets every number.

Today you choose the right lock for the job.

Key words

WordWhat it means
EncryptionScrambling data so only a person with the right key can read it.
CryptographyThe maths used to scramble and unscramble data.
KeyA secret value that locks or unlocks data.
Symmetric encryptionOne key both locks and unlocks.
Asymmetric encryptionA pair of keys: the public key locks, the private key unlocks.
Public keyThe key you give to everyone.
Private keyThe key only its owner keeps.
Risk mitigationA step that makes a risk smaller.

The cells students fill in are left blank in this preview.

By the end of this lesson

Note

I can say why a business encrypts data, and choose symmetric or asymmetric encryption for a job.

Starter: last time

Have a go

Starter: last time

3 questions
Have a go: your answers are marked here and then forgotten. Sign in if you would like your score kept, and to pick up where you left off.Sign in to keep your score

Your answers are marked here and are not kept. A college account keeps every student’s marks.

Cycle 1: the purpose

The purpose of encryption is to store data safely and to send data safely, using cryptography.

It does not stop a thief taking the data. It makes the data useless to the thief. That is why it is a risk mitigation.

The three kinds of encryption were taught in the core security course. Here you decide which one a business should pick.

Cycle 2: symmetric in the workplace

Symmetric encryption is fast. So it is used where there is a lot of data or many messages.

Example: a card payment system. The shop terminal and the bank share a secret key. Each payment is locked and unlocked with it.

The risk is the key. Whoever holds it can read everything. So the business must store and change keys with care.

Run: lock and unlock with one key

Command
cd /tmp && echo "order 1234" > note.txt && openssl enc -aes-256-cbc -pbkdf2 -salt -pass pass:rainbow42 -in note.txt -out note.enc && wc -c note.enc && openssl enc -d -aes-256-cbc -pbkdf2 -pass pass:rainbow42 -in note.enc

A command for the lesson’s lab terminal. It is shown here and not run.

What you should see

Note

The file size of note.enc, then the words "order 1234" again. The same password locked and unlocked it. A password on a command line is for a lab only. At work, keys are never typed like this.

Cycle 3: asymmetric in the workplace

Asymmetric encryption suits sending private data from one person to another, even when they have never met.

Example: encrypted email. Sam puts a public key on the staff page. A supplier locks the message with it. Only Sam's private key opens it.

It is slower, so it is used for small things: a message, or a first secret.

The lesson goes on

10 more parts of this lesson are in the full curriculum, with the tasks, the final check and the labs. A college account gives your students all of it.