HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →
Live examsInternational live exams are comingTell us which exam you want first. Timed practice papers are open now.See what is coming →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer Science
  • Space Science and Astronomy
  • Earth and Environmental Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Glossary
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpFor SchoolsAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Computer Science
  2. /Computer Systems
  3. /Encryption and Cyber Security

Encryption and Cyber Security

Computer Science · High School (9–10) · 2 courses, 20 worked problems, 20 practice questions

Data sent over a network can be read or changed by others, so it needs protection. Encryption turns plain text into cipher text that only someone with the right key can read. In symmetric encryption the same key locks and unlocks the data. In asymmetric encryption a public key encrypts and a private key decrypts. Systems also face threats such as malware, phishing, brute-force attacks, denial of service and hacking. Defences include strong passwords, firewalls, anti-malware software, access levels, two-step verification and secure connections such as HTTPS.

With practice you will be able to

  • Encrypt and decrypt a message with a simple cipher
  • Compare symmetric and asymmetric encryption
  • Match each security threat to a suitable defence

On the syllabus of

  • IGCSE

Lessons

  • Cyber Security: Threats and DefencesHow many tries can open any 4-digit PIN lock? How do attackers trick people?High School (9–10)
  • Encryption: Symmetric and Asymmetric KeysAnyone can copy your data, so how is it kept secret? Why is it safe to give out a public key?High School (9–10)

Practice questions

Choose an answer, then check it. Each one shows a full explanation.

In a brute-force attack, what does the attacker's program do?

Which kind of malware pretends to be useful, real software so that the user installs it?

A school puts a firewall between its network and the internet. What is the firewall's job?

Maya cannot open any of her files. A message on the screen asks for payment to unlock them. Which kind of malware is this?

A bicycle lock has 555 dials, and each dial shows a digit from 000 to 999. How many different codes can be set?

What makes pharming different from phishing?

A worm gets into one computer of a large network. Each hour, every computer it has reached passes it on to 222 new ones. How many computers have it after 555 hours?

Ella wants the websites she visits to see a different IP address, not her own computer's. Which solution does this?

A caller says he is from a bank's fraud team. He asks the customer to read out the code that has just arrived on her phone, "to stop a payment". What is this?

Which pair matches a threat with a solution that really helps against it?

All 20 practice questions on Encryption and Cyber Security →

Worked problems

Each one has a hint, the key idea and a full worked solution.

  • A door lock opens with a 4-digit PIN. Each digit can be 0 to 9…Easy
  • A password uses small letters, capital letters and digits: 62 characters in all…Medium
  • An online ticket shop opens its sales for a popular concert at 10:00…Medium
  • Name the kind of malware in each case. Every file on a laptop is locked, and a message demands…Easy
  • A worm reaches one computer on a network of 2000 computers…Medium
  • Two things happen to two customers of the same bank…Medium
  • At a small company, a caller rings the reception desk…Hard
  • A bank uses two-step verification. After the password, it sends a 6-digit code to the customer's…Medium
  • A school connects its network to the internet through a firewall…Medium
  • A small office has 6 staff. They share files on a server, use email, and log in to an online bank…Hard
  • Priya encrypts the word MEET with a shift cipher and the key 4…Easy
  • Kwame intercepts a message made with a shift cipher…Medium

All 20 worked problems on Encryption and Cyber Security →

Python labs

  • Count passwords and try a brute-force attack
  • A password rule, a link check and access levels
  • A shift cipher with one shared key
  • A toy key pair

Related topics

  • Computer Systems
  • Data Representation
  • Data Transmission
  • Computer Hardware
  • Software, Languages and Translators
  • The Internet, the Web and Digital Currency
  • Automated and Emerging Technologies