π 1. Need for and Purpose of Encryption
π Definition:β
Encryption is the process of converting plaintext (readable data) into ciphertext (unreadable data) to protect it from unauthorised access.
π Why encryption is neededβ
When data is transmitted over networks (especially the internet), it can be:
- Intercepted (hacked)
- Read by unauthorised users
- Modified
π― Purpose of encryption:β
1. Confidentialityβ
- Keeps data private
- Only authorised users can read it
2. Security during transmissionβ
- Protects data sent over insecure networks
3. Prevents unauthorised accessβ
- Hackers cannot understand encrypted data
π Example:β
When you enter a password on a website:
- It is encrypted before being sent
- Even if intercepted, it appears as meaningless data
π Exam Tip:β
If asked βWhy is encryption needed?β, include:
- prevent unauthorised access
- protect data during transmission
- maintain confidentiality
π 2. Types of Encryption
There are two main types:
- Symmetric encryption
- Asymmetric encryption
π A. Symmetric Encryption
π Definition:β
A method where the same key is used to:
- Encrypt data
- Decrypt data
π§ How it works:β
- Sender uses a secret key to encrypt plaintext
- Data becomes ciphertext
- Receiver uses the same key to decrypt it
π Example:β
- Message:
HELLO - Key:
3 - Encrypted (shift):
KHOOR
Receiver uses key 3 to decode back to HELLO
βοΈ Advantages:β
- Faster than asymmetric encryption
- Efficient for large amounts of data
β Disadvantages:β
- Key must be shared securely
- Risk of interception during key exchange
π Exam Tip:β
Key phrase:
βSame key is used for encryption and decryptionβ
π B. Asymmetric Encryption
π Definition:β
A method that uses two different keys:
- Public key (shared with everyone)
- Private key (kept secret)
π Key Concepts:β
Public Keyβ
- Used to encrypt data
- Can be shared openly
Private Keyβ
- Used to decrypt data
- Must be kept secret
π§ How it works:β
- Sender obtains receiverβs public key
- Sender encrypts message using public key
- Message is sent as ciphertext
- Receiver decrypts using their private key
π Example:β
- You send a message to a website
- Website provides its public key
- You encrypt data using it
- Only the website can decrypt using its private key
βοΈ Advantages:β
- More secure (no need to share private key)
- Safer key distribution
β Disadvantages:β
- Slower than symmetric encryption
- More complex
π Exam Tip:β
Always mention:
- public key
- private key
- different keys
π Symmetric vs Asymmetric Encryption
| Feature | Symmetric | Asymmetric |
|---|---|---|
| Keys used | One key | Two keys |
| Speed | Faster | Slower |
| Security | Less secure (key sharing risk) | More secure |
| Complexity | Simple | More complex |
π Real-World Use (Important!)
Often both methods are used together:
π Example (Secure Website):β
- Asymmetric encryption β used to securely exchange key
- Symmetric encryption β used for fast data transfer
π§ Key Terms (VERY IMPORTANT)
- Plaintext β original readable data
- Ciphertext β encrypted unreadable data
- Encryption β converting plaintext to ciphertext
- Decryption β converting ciphertext back to plaintext
- Key β value used in encryption/decryption
- Public key β shared key
- Private key β secret key
π₯ Common Exam Questions
1. Describe symmetric encryption (3β4 marks)β
β Include:
- one key
- same key used to encrypt and decrypt
2. Describe asymmetric encryption (4β6 marks)β
β Include:
- public key
- private key
- different keys
- encryption + decryption process
3. Compare symmetric and asymmetric encryptionβ
β Include:
- speed
- number of keys
- security
4. Explain why encryption is neededβ
β Include:
- security
- confidentiality
- protection from hackers
β οΈ Common Mistakes to Avoid
β Saying public and private keys are the same
β Forgetting to mention key sharing problem in symmetric encryption
β Not explaining who uses which key
π Final Revision Tips
- Memorise definitions (they are often 2β3 mark questions)
- Practice explaining step-by-step processes
- Always include advantages and disadvantages
- Use correct terminology: plaintext, ciphertext, key