🧠 Lesson #5: CRYPTOGRAPHY
🔐 Introduction to Cryptography
Cryptography means hiding information so that only the right person can read it.
When we change normal text (plaintext) into secret code (ciphertext), it’s called encryption.
To get the original message back, we do decryption.
🗝️ Plaintext → (Encryption) → Ciphertext → (Decryption) → Plaintext
🏛️ Origin of Cryptography
The story of cryptography starts with Julius Caesar 👑.
He didn’t trust his messengers, so he made a secret code by shifting letters of the alphabet.
Example:
A→D
B→E
C→F
Only people who knew the rule (shift by 3) could read it.
This is known as the Caesar Cipher.
🔁 Caesar’s Cipher Example
Alphabet: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Shift by 3 → DEFGHIJKLMNOPQRSTUVWXYZABC
So:
D=A
E=B
F=C
Word: SECRET → becomes VHFUHW 🕵️♀️
⚙️ Conventional (Symmetric) Cryptography
This is a fast method used for data encryption.
Both sender and receiver share one secret key 🔑.
✅ Advantages:
Very fast
Good for local data protection
⚠️ Disadvantages:
Both sides must share the same key
If someone steals or hears the key, they can read all messages 😨
📦 Key Management
When users are in different places, they must send the secret key securely.
If a hacker gets the key, they can:
Read
Change
Fake messages 😱
That’s why key management is a big challenge in symmetric systems.
🌍 Public Key Cryptography (Asymmetric Cryptography)
This system uses two keys:
🗝️ Public Key – shared with everyone
🔒 Private Key – kept secret
Each person has both keys.
Messages encrypted with the public key can only be read with the private key.
✅ Safer than conventional cryptography
✅ No need to secretly send keys
🪪 Certificate Management & Distribution
To make sure public keys are real and trustworthy, we use Public Key Infrastructure (PKI).
🏢 Certification Authority (CA)
A CA is a trusted organization.
It issues digital certificates to users or computers.
Like a Passport Office 🛂, it checks identity before issuing certificates.
🪪 Summary Table
Term Meaning
Plaintext Normal, readable text
Ciphertext Encrypted, unreadable text
Encryption Changing plaintext into ciphertext
Decryption Changing ciphertext into plaintext
Key Secret code for encryption/decryption
CA (Certification Authority) Trusted body that gives digital certificates
🎯 Short Questions (2–3 Marks) with Answers
1. What is cryptography?
👉 Cryptography is the science of hiding information to protect it from unauthorized access.
It changes normal text into a secret code so that only the right person can read it.
2. Define encryption and decryption.
👉 Encryption is the process of changing plaintext into ciphertext (secret code).
👉 Decryption is the process of changing ciphertext back into plaintext (original text).
3. Who invented the Caesar Cipher?
👉 The Caesar Cipher was invented by Julius Caesar, a Roman leader, to send secret messages
to his generals.
4. What is the main problem with conventional cryptography?
👉 In conventional (symmetric) cryptography, both sides must share the same secret key.
If someone steals or intercepts the key, they can read or change all the messages.
5. Define Public Key Cryptography.
👉 Public Key Cryptography uses two keys — a public key and a private key.
It allows secure communication without sharing a secret key.
6. What is the role of a Certification Authority (CA)?
👉 A Certification Authority (CA) is a trusted organization that issues digital certificates.
It verifies that a public key truly belongs to the person or organization claiming it.
7. What is ciphertext?
👉 Ciphertext is the encrypted form of a message.
It looks like random, unreadable text and can only be changed back using the correct key.
8. What does PKI stand for?
👉 PKI stands for Public Key Infrastructure.
It is a system that manages public keys and digital certificates to ensure secure communication.
📝 Multiple Choice Questions (MCQs)
1. The process of converting plaintext into ciphertext is called:
a) Decryption
b) Encryption
c) Decoding
d) Hashing
✅ Answer: b) Encryption
2. Who used the Caesar Cipher?
a) Newton
b) Einstein
c) Julius Caesar
d) Turing
✅ Answer: c) Julius Caesar
3. In Caesar Cipher, letters are shifted by how many places?
a) 1
b) 2
c) 3
d) 4
✅ Answer: c) 3
4. What is the unreadable form of plaintext called?
a) Ciphertext
b) Message
c) Plaintext
d) Code
✅ Answer: a) Ciphertext
5. Which cryptography uses two keys (public and private)?
a) Symmetric
b) Asymmetric
c) Conventional
d) Simple
✅ Answer: b) Asymmetric
6. Who issues digital certificates?
a) Internet Provider
b) Certification Authority
c) User
d) Firewall
✅ Answer: b) Certification Authority
7. In symmetric encryption, how many keys are used?
a) One
b) Two
c) Three
d) None
✅ Answer: a) One