GCSE · Computer Science · Edexcel · Spec 1CP2
Encryption
Imagine someone secretly copies every message you send. You can't un-copy it. So what would make that copy useless to them? That's the job of encryption.
Computer Science · Encryption
Lock it, send it, unlock it
One message, one key. Step through and watch MEET turn into nonsense and then back again.
Before you press Next, say where the letter will land after moving 3 places. Then check.
1 key = 32 plaintext = "MEET"3 FOR EACH letter IN plaintext4 add (letter moved key places FORWARD) to ciphertext5 SEND ciphertext6 FOR EACH letter IN ciphertext7 add (letter moved key places BACK) to plaintext8 OUTPUT plaintext
Variables
Output
Step 1: The key is 3. The sender and the receiver both know it. Nobody else should.
This is a Caesar cipher: every letter moves the same number of places, and that number is the key.
Predict, then check
Two tougher ciphers. A mixed alphabet cipher swaps each letter for one from a jumbled alphabet (here A→Q, B→W, K→A, O→G …). A polyalphabetic cipher keeps changing the shift (here +1, then +2, then +1, then +2).
The word BOOK is encrypted with each cipher. What happens to its two Os?
Computer Science · Symmetric and asymmetric encryption
Which key does which job?
Pick a statement, then pick the key it describes.
Still to sort
Symmetric: the shared secret key (0)
One key, used by sender and receiver
Where the line is: It's secret, like a private key, but two people have to hold it.
Asymmetric: the public key (0)
Handed out freely
Where the line is: It can lock data for the owner, but only the matching private key unlocks it.
Asymmetric: the private key (0)
Kept secret by its owner
Where the line is: It's secret, like a symmetric key, but it is never shared with anyone.
Symmetric encryption uses one shared secret key. Asymmetric encryption uses a pair of related but different keys: a public key and a private key.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Scramble a message so only the right person can read it, and find out why the real secret is the key, not the method.
What you need to know
- What encryption and decryption are, and the different jobs of the algorithm and the key
- The difference between plaintext and ciphertext
- How to encrypt and decrypt with a Caesar cipher, and why it is easy to break
- Why mixed alphabet and polyalphabetic ciphers are harder to break
- How symmetric and asymmetric encryption use their keys
- How encryption protects data in everyday applications, and why it is not foolproof
The big picture
Encryption encodes data so that only the intended recipient can understand it: an algorithm uses a key to turn readable plaintext into unreadable ciphertext, and decryption uses the key to turn it back. A Caesar cipher shifts every letter by the same amount, but with only 25 keys it is easy to break by trying them all; mixed alphabet and polyalphabetic ciphers are harder to break. Symmetric encryption shares one secret key; asymmetric encryption encrypts with a public key and decrypts with a private one. Intercepted encrypted data is unreadable without the key, but weak, stolen or mismanaged keys still let attackers in.
Key points
Worked example
Problem
A message was encrypted with a Caesar cipher using a key of +5. The ciphertext is DJX. Decrypt it.
⚠ Watch out
Shifting forward again to decrypt. Decryption runs the key in reverse: with a key of +3, the ciphertext letter D goes back to A. Moving it forward to G just scrambles the message a second time.
Memory hook
Think of a padlock. The algorithm is how the lock works; the key is what opens it. Anyone can know how a lock works, but only the key gets you in. A Caesar cipher is a lock with just 25 possible keys, so you can simply try them all.
Check yourself
Encrypt CAT with a Caesar cipher and a key of +2. Then explain, in one sentence, how someone who intercepts your ciphertext could read it without ever being told the key.
Flashcards
(15)What is encryption?
What is plaintext?
What is ciphertext?
What is decryption?
What is a cipher (an encryption algorithm)?
What does the key do in encryption?
How does a Caesar cipher work?
Why is a Caesar cipher easy to break?
What is a mixed alphabet cipher?
What is a polyalphabetic cipher?
How does symmetric encryption use its key?
In asymmetric encryption, what is the public key for?
In asymmetric encryption, what is the private key for?
If encrypted data is intercepted, what does the attacker get?
Is encryption foolproof?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 1 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.