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 →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Computer 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. Notes
  2. /Encryption: Quick Revision
Computer Science

Encryption: Quick Revision

A brief note on encryption: why data is encrypted, plaintext and ciphertext, symmetric encryption with one shared key, and asymmetric encryption with public and private keys, with practice, a program and questions to check yourself.

StemPy LabWritten by StemPy Lab
Log in to save

A brief note on Encryption. Read it before a test. Try each question at the end before you open its answer.

Why encrypt

  • Data can be intercepted on its way across a network.
  • Encryption makes intercepted data meaningless without the key. It does not stop interception.
  • Plaintext + algorithm + key gives ciphertext. Decryption with the right key gives the plaintext back.

Symmetric encryption

  • The same key encrypts and decrypts.
  • The key must be shared with the receiver. If it is intercepted, the data can be read.

Asymmetric encryption

  • A matched key pair: a public key (anyone may have it) and a private key (only the owner).
  • To send to someone, encrypt with their public key. They decrypt with their private key.
  • No secret key ever has to be sent.

Practice with new numbers

A program to try

The program encrypts a message with one shared key and decrypts it with the same key, as in symmetric encryption.

Read it first. Then run it. Does the last line match the message?

1. Decrypt with a different key. What do you get?

Mistakes to avoid

  • Encryption stops interception. It does not; it hides the meaning.
  • Two keys in symmetric encryption. There is one shared key.
  • Keeping the public key secret. Only the private key is secret.
  • Using your own public key to write to someone else. Use theirs.

Check yourself

  1. What is the scrambled form of the data called?
  1. What must both sides share in symmetric encryption?
  1. Ali sends Zara a secret message. Which key encrypts it?
  1. Which key decrypts it?
  1. Give one advantage of asymmetric encryption.

Sources

  • Cambridge International, IGCSE Computer Science 0478 syllabus (exams 2026 to 2028), section 2.3.
← All Notes
← Error Detection: Quick RevisionThe Processor and the Fetch-Decode-Execute Cycle: Quick Revision →
More onComputer Science › Encryption and Cyber Security

Discussion (0)

Log in to join the discussion.

Loading…

On this page

  1. Why encrypt
  2. Symmetric encryption
  3. Asymmetric encryption
  4. Practice with new numbers
  5. A program to try
  6. Mistakes to avoid
  7. Check yourself
  8. Sources

Goes with the lesson

  1. Asymmetric encryption: public and private keysEncryption: Symmetric and Asymmetric Keys

More notes on this topic

  1. Cyber Security Threats and Defences: Quick Revision
  2. Logic Circuits and Truth Tables: Quick Revision
  3. NAND, NOR and XOR Gates: Quick Revision
  4. NOT, AND and OR Gates: Quick Revision
  5. COUNT, SUM, AND and OR: Quick Revision
All notes on this topic →