šŸ” Cryptography & Information Security

Unit 1 – Mathematical Background & Classical Cryptography

šŸ“˜ Unit 1 Overview

Unit 1 introduces the mathematical foundation of cryptography and various classical encryption techniques. It also covers DES, Triple DES, Block Cipher and Stream Cipher which are very important for RGPV examinations.

Exam Tip: Extended Euclid Algorithm, Fermat Theorem, Playfair Cipher, DES and Triple DES are highly important topics.

šŸ”¢ Mathematical Background for Cryptography

Cryptography relies heavily on mathematics for secure communication.

Abstract Algebra

Abstract Algebra studies algebraic structures such as groups, rings and fields. These structures are widely used in cryptographic algorithms.

Number Theory

Number Theory deals with properties of integers and prime numbers. Most encryption algorithms such as RSA use number theory concepts.

āž— Modular Arithmetic

Modular Arithmetic works on remainders after division.

Formula

a mod n = remainder when a is divided by n

Example

17 mod 5 = 2

Modular arithmetic is the backbone of modern cryptography.

šŸ”„ Modular Inverse

The modular inverse of a number a under modulus m is a number x such that:

(a Ɨ x) mod m = 1

Example

3 Ɨ 7 = 21 ≔ 1 (mod 10)

Therefore inverse of 3 modulo 10 is 7.

āš™ Extended Euclid Algorithm

Extended Euclid Algorithm is used to find GCD and Modular Inverse.

Applications

šŸ“ Fermat's Little Theorem

If p is a prime number and a is not divisible by p:

a^(pāˆ’1) ≔ 1 (mod p)

Uses

šŸ“ Euler Phi Function

Euler Phi Function φ(n) gives the number of positive integers less than n that are relatively prime to n.

Example

φ(9) = 6

Numbers: 1,2,4,5,7,8

šŸ“ Euler's Theorem

If gcd(a,n)=1 then:

a^φ(n) ≔ 1 (mod n)

Euler's theorem is a generalized form of Fermat's theorem.

šŸ” Introduction to Cryptography

Cryptography is the science of securing information by converting plaintext into ciphertext.

Term Meaning
Plaintext Original message
Ciphertext Encrypted message
Encryption Converting plaintext into ciphertext
Decryption Converting ciphertext back into plaintext
Key Secret value used for encryption/decryption

šŸŽÆ Principles of Cryptography

šŸ› Classical Cryptosystem

Classical cryptography uses substitution and transposition techniques.

Types

šŸ”„ Substitution Cipher

Each letter is replaced by another letter according to a fixed rule.

Example

A → D, B → E, C → F

Advantages

šŸ“Š Frequency Analysis

Frequency analysis is a cryptanalysis technique used to break substitution ciphers.

It studies the frequency of letters appearing in ciphertext.

Most frequently occurring English letters are E, T, A, O.

šŸ”‘ Playfair Cipher

Playfair Cipher encrypts pairs of letters instead of single letters.

Features

🧱 Block Cipher

Block Cipher encrypts data in fixed-size blocks.

Examples

šŸ”’ Data Encryption Standard (DES)

DES is a symmetric key encryption algorithm developed by IBM.

Features

Advantages

Limitation

56-bit key is now considered weak.

šŸ” Triple DES (3DES)

Triple DES improves security by applying DES three times.

Process

  1. Encrypt using Key 1
  2. Decrypt using Key 2
  3. Encrypt using Key 3

Advantages

🌊 Stream Cipher

Stream Cipher encrypts data one bit or one byte at a time.

Advantages

Examples

⭐ Most Important Questions

  1. Explain Extended Euclid Algorithm.
  2. Explain Fermat's Little Theorem.
  3. Explain Euler Phi Function and Euler's Theorem.
  4. Define Cryptography and its principles.
  5. Explain Classical Cryptosystem.
  6. Explain Substitution Cipher and Frequency Analysis.
  7. Explain Playfair Cipher.
  8. Explain Block Cipher and Stream Cipher.
  9. Explain DES Architecture.
  10. Differentiate DES and Triple DES.

šŸ”„ Last Minute Revision