←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
Diagrams

Diagrams

Visual representations for Unit 1

The CIA Triad — Foundation of Cyber Security

The CIA Triad — Foundation of Cyber Security
🔒 Confidentiality
Only authorized users can view secret data (Privacy)
🛡️ Integrity
Data stays accurate and unaltered during storage or transfer
⚡ Availability
Systems and data are always accessible to genuine users when needed
Explanation
  • Confidentiality protects access, integrity protects correctness and availability protects timely use.
  • A results portal needs all three for students to trust its marksheets.
Detailed Notes →Quick Revision →

How a Cryptographic System (Cryptosystem) Works

How a Cryptographic System (Cryptosystem) Works
Plain Text (P)"HELLO" (Readable)
➔
Encryption (E)Uses Secret Key (K)
➔
Cipher Text (C)"KHOOR" (Scrambled)
➔
Decryption (D)Uses Secret Key (K)
➔
Plain Text (P)"HELLO" (Restored)
Explanation
  • Encryption takes plaintext and a key to produce ciphertext.
  • Decryption uses the appropriate key to recover the message.
Detailed Notes →Quick Revision →

Hierarchy of Cryptology

Hierarchy of Cryptology
Cryptology (The Complete Study of Secret Codes)
🔐 Cryptography (Making Codes to Protect Data)
🔓 Cryptanalysis (Breaking Codes Without the Key)
Explanation
  • Cryptology includes designing protection through cryptography.
  • It also includes studying the strength of that protection through cryptanalysis.
Detailed Notes →Quick Revision →

Caesar Cipher Shift by k = 3

Caesar Cipher Shift by k = 3
Plain: A B C D ... X Y ZOriginal Alphabet (0 to 25)
➔ Shift +3 ➔
Cipher: D E F G ... A B CShifted Alphabet
Explanation
  • Count three positions forward to encrypt a letter, wrapping after Z.
  • Moving three positions back recovers the original letter.
Detailed Notes →Quick Revision →

Single-Letter vs. Polygram Substitution

Single-Letter vs. Polygram Substitution
Mono-alphabetic (Letter by Letter)
• H always becomes K
• So "HE" ➔ "KL"
• And "HI" ➔ "KM" (First letter still K!)
Polygram Cipher (Block by Block)
• Whole block is replaced from a dictionary
• "HE" ➔ "XY"
• "HI" ➔ "ab" (Completely different!)
Explanation
  • Single-letter substitution maps each character separately.
  • Polygram substitution processes a group together so a letter's partner can matter.
Detailed Notes →Quick Revision →

Three Playfair Cipher Encryption Rules

Three Playfair Cipher Encryption Rules
1. Same Row Rule
Replace each letter with the letter immediately to its RIGHT (wrap around to left edge)
2. Same Column Rule
Replace each letter with the letter immediately BELOW it (wrap around to top edge)
3. Rectangle Rule
Replace each letter with the letter in its OWN ROW but at the OTHER letter's column corner
Explanation
  • Same-row and same-column pairs move along their respective lines in the square.
  • A rectangle pair takes the other corner in each letter's row.
Detailed Notes →Quick Revision →

📝 Solved Example 1: Rail Fence Cipher (Depth = 2)

Row 1:  M   E   M   A   T   R   H   P   R   Y
         \ / \ / \ / \ / \ / \ / \ / \ / \ /
Row 2:    E   T   E   F   E   T   E   A   T
Explanation
  • Follow alternate rails while writing the message.
  • Read each rail in order to obtain the rearranged letters.
Detailed Notes →Quick Revision →

Substitution vs. Transposition at a Glance

Substitution vs. Transposition at a Glance
🔄 Substitution Cipher
• Replaces each letter with a different letter/symbol
• Letter positions stay the same; letter identity changes
• Example: "CAT" ➔ "FDW"
🔀 Transposition Cipher
• Rearranges the order/positions of existing letters
• Letter identity stays the same; positions change
• Example: "CAT" ➔ "ATC"
Explanation
  • Substitution replaces symbols according to a mapping.
  • Transposition keeps the symbols and changes their positions.
Detailed Notes →Quick Revision →