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 What is the scrambled form of the data called? Stuck? Show a hint Show the answerWhat must both sides share in symmetric encryption? Stuck? Show a hint Show the answerAli sends Zara a secret message. Which key encrypts it? Stuck? Show a hint Show the answerWhich key decrypts it? Stuck? Show a hint Show the answerGive one advantage of asymmetric encryption. Stuck? Show a hint Show the answerSources Cambridge International, IGCSE Computer Science 0478 syllabus (exams 2026 to 2028), section 2.3.