ScholaFly

CS08-05 Computer Science Watch

Encryption across a network

Watch on YouTube

In this lesson

Encryption: how to explain the principle of encryption, with worked examples and the mistakes examiners report. AQA 8525, Edexcel 1CP2 and OCR J277 GCSE. Protocols and layers 5 of 6. Full Protocols and layers playlist: https://www.youtube.com/playlist?list=PLD_gG3hKyrIE More at https://scholafly.com

By the end: Explain the principle of encryption: an algorithm and a key turn readable data into ciphertext before it is sent, so that if it is intercepted it is meaningless to anyone without the key, and only the intended receiver can decrypt it - and say precisely that encryption does not stop data being intercepted.

What it covers

  1. 0:00 Intro: encryption: across a network
  2. 0:42 Encryption
  3. 3:06 A common wrong answer
  4. 6:05 Encryption: across a network: https

Key words

About this video

Encryption across a network | GCSE Computer Science | CS08-05

Encryption: how to explain the principle of encryption, with worked examples and the mistakes examiners report.
AQA 8525, Edexcel 1CP2 and OCR J277 GCSE. Protocols and layers 5 of 6.
Full Protocols and layers playlist: https://www.youtube.com/playlist?list=PLD_gG3hKyrIE
More at https://scholafly.com

Watch first: CS08-01 - https://youtu.be/PwJYgaGSx_o
Video code: CS08-05 (search "ScholaFly CS08-05")

#GCSEComputerScience #ProtocolsAndLayers #EncryptionAcrossANetwork

For teachers
This GCSE Computer Science lesson teaches encryption across a network. By the end, students should be able to explain the principle of encryption: an algorithm and a key turn readable data into ciphertext before it is sent, so that if it is intercepted it is meaningless to anyone without the key, and only the intended receiver can decrypt it - and say precisely that encryption does not stop data being intercepted. It works through four worked examples and the mistakes examiners report.

Exam board specification references:
AQA 8525
- 3.5
Edexcel 1CP2
- 5.3.2
OCR J277
- 1.3.2

Read the transcript

Can you stop strangers copying the messages you send on a café's public Wi-Fi? Every one passes through equipment that is not yours. Being careful feels as if it should work. It does not: anything that passes through someone else's equipment can be copied, however careful you are. What you can do is make sure that what they copy is gibberish to them. Keep that café in mind: by the recap you will know how a copy turns to gibberish.

Encryption turns readable data into scrambled data before it is sent, so that anyone who intercepts it cannot understand it. The readable data is called plaintext. The scrambled version is called ciphertext. An encryption algorithm, a fixed set of steps, uses a key to turn plaintext into ciphertext. Decryption uses a key to turn it back. Without the key, the ciphertext cannot be understood. Across a network, data is encrypted before it leaves the sender and decrypted by the receiver, so it is protected the whole way. One course lists this principle under networks. The others examine the same idea as a way of protecting data, and the video Protecting systems, networks and data sets it beside the other methods. A toy version shows the parts, though it is far too weak for real use. The algorithm is to shift each letter along the alphabet, and the key says how far. With a key of three, A becomes D, and B becomes E. Using a shift of three, what does the word CAT become? F D W. C moves three on to F, A moves to D, and T moves to W. Now someone on the café network copies F D W on its way. They have a perfect copy of it. What does that intercepted copy tell them, without the key? Nothing useful. They can open it and look at it, but it is meaningless to them. The receiver has the key, shifts each letter back by three, and reads CAT.

That perfect copy is where a common wrong answer starts. Here is one student's sentence: encryption stops hackers stealing your data. What is wrong with that student's sentence about encryption? Encryption cannot stop the taking. A copy can still be intercepted; the copy means nothing without the key. A version that scores: encrypted data can still be intercepted, but without the key it cannot be understood. One examiner's report sets out the difference: "Commonly it was stated that encrypted data could not be stolen or accessed or intercepted, which is not accurate. The point that should have been made is that it can’t be understood by someone who does not have the key to decrypt the data, which is a different thing." The fix is to write both halves every time. The data can be intercepted, and it is meaningless without the key. One word needs care: read. Encrypted data can be opened and read like any file. What it cannot be is understood. Another examiner's report sets the scoring phrase beside the slip. First the phrase: "Some candidates were able to identify that encryption makes it impossible to understand the data." Then the slip: "Some candidates stated the data could not be read. This was not precise enough. The data can still be intercepted and read but that this data will be meaningless." So the word to use instead of cannot be read is meaningless, or impossible to understand. Now three descriptions. A, it stops anyone without the key intercepting the data. B, it makes intercepted data meaningless without the key. C, it makes the data meaningless, so nobody can read it. Which of the three describes encryption precisely? B. A and C each claim something encryption cannot do, since the copy can still be taken, opened and read.

Now the everyday case. HTTPS is HTTP with encryption added, so the question is what exactly it encrypts. It does not encrypt the website, and it does not make the website itself secure. The padlock belongs on the connection, not on the site. Now a shop's website uses HTTPS for its checkout. What does HTTPS encrypt at that checkout, and between what? The customer's payment details and address, while they travel between the customer's browser and the web server. Two tempting answers are that HTTPS creates secure websites, or that it encrypts websites. One examiner's report, on answers like those, says: "Whilst these answers have some merit they are not technically correct and so not awarded marks." The fix: name the data, and name the two ends it travels between, the browser and the web server.

One sentence runs through this topic, so the questions keep coming back to it. What is the difference between plaintext and ciphertext? Plaintext is the readable data. Ciphertext is the scrambled version the algorithm makes from it with the key. Now try a shift of two: what does the word DOG become? F Q I. Each letter moves two places on. A different one: someone copies an encrypted file. Has the encryption failed? No. Copying was always possible. Without the key the copy is meaningless, and that is the job encryption does. Now the café from the start: what does encryption give you on that Wi-Fi? Strangers can still copy your messages. But without the key, what they copy is gibberish to them.

Here is the chapter list so far, finishing on this video. If that one sentence about interception has stuck, press thumbs up, so you can pass it by next time. If it has not settled, keep it in a playlist and come back to it in a day or two. It reads differently after a gap.

Next in the chapter: Transmission rate, file size and time. Hopefully that's next in your feed, but if not, search for ScholaFly C S oh eight, oh six.

Every other video is on scholafly.com too, easy to search by video code or by keyword. Whatever you're revising, go there and have a look, or, watch the next video.

Related terms

For: OCR GCSE J277, AQA GCSE 8525, Edexcel GCSE 1CP2

On the specification

BoardSpecStatement
OCR GCSE J2771.3.2Wired and wireless networks, protocols and layers
AQA GCSE 85253.5Computer networks
Edexcel GCSE 1CP25.3.2Explain methods of protecting digital systems and data: anti-malware, encryption, acceptable use policies, and backup and recovery procedures.
For teachers

This GCSE Computer Science lesson teaches encryption across a network. By the end, students should be able to explain the principle of encryption: an algorithm and a key turn readable data into ciphertext before it is sent, so that if it is intercepted it is meaningless to anyone without the key, and only the intended receiver can decrypt it - and say precisely that encryption does not stop data being intercepted. It works through four worked examples and the mistakes examiners report.