←Back to Subject
Notes
Notes
Study material and explanations
Diagrams
Diagrams
Visualize concepts easily
Mnemonics
Mnemonics
Tricks to remember faster
One Night Prep
One Night Prep
Short and focused revision
Revision
Revision
Quick summary and key points
Important Questions
Important Questions
Practice most relevant questions
Notes

Encryption, Decryption & Symmetric Key Cryptography Overview

Study material and explanations for Unit 2

Encryption, Decryption, and Overview of Symmetric Key Cryptography

1. What are Encryption and Decryption?

In modern computer networks, data travels across public wires, Wi-Fi routers, and internet service providers. To stop hackers from reading sensitive data (like bank passwords or private chats), we use Encryption and Decryption.

The Encryption and Decryption Process
Plain Text (P)Original Readable Data
➔
Encryption AlgorithmLocks Data with Key (K)
➔
Cipher Text (C)Sent Over Untrusted Internet
➔
Decryption AlgorithmUnlocks Data with Key (K)
➔
Plain Text (P)Original Data Restored

Difference Between Encryption and Decryption:

Feature Encryption (Enciphering) Decryption (Deciphering)
1. Definition Process of converting readable Plain Text into unreadable Cipher Text Process of converting unreadable Cipher Text back into readable Plain Text
2. Performed By Performed by the Sender before sending data over the network Performed by the Receiver after receiving data from the network
3. Purpose To hide secret information from unauthorized hackers To restore the original message for the authorized user
4. Input & Output Input: Plain Text + Key → Output: Cipher Text Input: Cipher Text + Key → Output: Plain Text
5. Formula C = EK(P) P = DK(C)

2. Overview of Symmetric Key Cryptography

Symmetric Key Cryptography (also called Secret-Key, Single-Key, or Private-Key Cryptography) is an encryption method where the exact same secret key (K) is used for both Encryption (by the sender) and Decryption (by the receiver).

💡 Real-Life Analogy:
Imagine a wooden treasure box with a padlock. Suppose Rahul wants to send gold jewellery to Priya in another city:

  1. Both Rahul and Priya have a duplicate copy of the same physical key.
  2. Rahul puts the jewellery in the box, locks it with his key, and sends it via courier.
  3. When the box reaches Priya, she uses her identical key to open the padlock!
    That is Symmetric Key Cryptography.

3. Five Essential Ingredients of Symmetric Encryption

A symmetric encryption scheme has 5 core components:

  1. Plain Text (P): The original intelligible message or data fed into the algorithm.
  2. Encryption Algorithm (E): Performs various substitutions and transformations on the plain text.
  3. Secret Key (K): A value independent of the plain text and algorithm. Both sender and receiver must share this same secret key.
  4. Cipher Text (C): The scrambled message produced as output.
  5. Decryption Algorithm (D): The Encryption algorithm run in reverse using the same Secret Key (K) to produce the original Plain Text.

4. Types of Symmetric Key Ciphers: Stream vs. Block Ciphers

All modern Symmetric Key Algorithms are divided into two categories based on how they process data:

Two Types of Symmetric Ciphers
⚡ 1. Stream Ciphers
• Encrypts data 1 bit or 1 byte at a time continuously
• Very fast and uses minimal memory
• Best for live audio/video streaming & mobile calls
• Examples: RC4, ChaCha20, Vernam Cipher
🧱 2. Block Ciphers
• Breaks data into fixed-size blocks (e.g., 64-bit or 128-bit) and encrypts one block at a time
• Highly secure and widely used for files, databases & HTTPS
• Examples: DES (64-bit), 3DES, AES (128-bit), Blowfish

5. Advantages and Limitations of Symmetric Key Cryptography

✅ Advantages:

  1. Extremely Fast: Symmetric algorithms use simple bitwise operations (XOR, shifts, table lookups), making them 100 to 1000 times faster than Asymmetric algorithms.
  2. Ideal for Bulk Data: Can easily encrypt huge files, 4K movies, and entire 1TB hard drives without slowing down the computer.
  3. Low CPU & Battery Usage: Requires very little processing power.

❌ Limitations (Disadvantages):

  1. The Key Distribution Problem: Before Rahul and Priya can communicate, how does Rahul safely send the secret key to Priya? If he sends the key over the internet or WhatsApp, a hacker might steal the key itself!
  2. The N(N-1)/2 Key Explosion Problem: In a company with N employees where everyone wants to communicate privately with everyone else, each pair needs a unique secret key:

    Formula: Total Keys Required = (N(N - 1)) / (2) For 1,000 users, you would need (1000 × 999 / 2) = 4,99,500 secret keys!

  3. No Non-Repudiation: Since both sender and receiver have the exact same key, the receiver could create a fake message and claim the sender sent it.

💡 DAVV Exam Preparation Tips

5-Mark Question: “What is Symmetric Key Cryptography? Explain its working, advantages, and limitations.”

  • Draw the 5-component Symmetric Encryption diagram.
  • Explain the Padlock Analogy (same key locks and unlocks).
  • Differentiate between Stream Cipher and Block Cipher.
  • Highlight the Key Distribution Problem and the formula (N(N-1) / 2).