Unit 1 ā Mathematical Background & Classical Cryptography
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.
Cryptography relies heavily on mathematics for secure communication.
Abstract Algebra studies algebraic structures such as groups, rings and fields. These structures are widely used in cryptographic algorithms.
Number Theory deals with properties of integers and prime numbers. Most encryption algorithms such as RSA use number theory concepts.
Modular Arithmetic works on remainders after division.
a mod n = remainder when a is divided by n
17 mod 5 = 2
The modular inverse of a number a under modulus m is a number x such that:
(a Ć x) mod m = 1
3 Ć 7 = 21 ā” 1 (mod 10)
Therefore inverse of 3 modulo 10 is 7.
Extended Euclid Algorithm is used to find GCD and Modular Inverse.
If p is a prime number and a is not divisible by p:
a^(pā1) ā” 1 (mod p)
Euler Phi Function Ļ(n) gives the number of positive integers less than n that are relatively prime to n.
Ļ(9) = 6
Numbers: 1,2,4,5,7,8
If gcd(a,n)=1 then:
a^Ļ(n) ā” 1 (mod n)
Euler's theorem is a generalized form of Fermat's theorem.
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 |
Classical cryptography uses substitution and transposition techniques.
Each letter is replaced by another letter according to a fixed rule.
A ā D, B ā E, C ā F
Frequency analysis is a cryptanalysis technique used to break substitution ciphers.
It studies the frequency of letters appearing in ciphertext.
Playfair Cipher encrypts pairs of letters instead of single letters.
Block Cipher encrypts data in fixed-size blocks.
DES is a symmetric key encryption algorithm developed by IBM.
56-bit key is now considered weak.
Triple DES improves security by applying DES three times.
Stream Cipher encrypts data one bit or one byte at a time.