























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























History: K = 3, Caesar’s cipher
Can an attacker find K? YES: exhaustive search, key space is small (<= 26 possible keys). Once K is found, very easy to decrypt
General Mono-alphabetical Substitution Cipher
each letter X in the plaintext P is replaced with π(X)
each letter Y in the cipherext P is replaced with π
BECAUSE → AZDBJSZ
Cryptanalysis of Substitution Ciphers: Frequency Analysis Basic ideas: Each language has certain features: frequency of letters, or of groups of two or more letters. Substitution ciphers preserve the language features. Substitution ciphers are vulnerable to frequency analysis attacks.
a b c d e f g h i j k l m n o p q r s t u v w x y z Series
Discovered by the Arabs earliest known description of frequency analysis is in a book by the ninth-century scientist al-Kindi Rediscovered or introduced from the Arabs in the Europe during the Renaissance Frequency analysis made substitution cipher insecure
Shift ciphers are easy to break using brute force attacks, they have small key space. Substitution ciphers preserve language features and are vulnerable to frequency analysis attacks.
Towards the Polyalphabetic Substitution Ciphers Main weaknesses of monoalphabetic substitution ciphers each letter in the ciphertext corresponds to only one letter in the plaintext letter Idea for a stronger cipher (1460’s by Alberti) use more than one cipher alphabet, and switch between them when encrypting different letters Developed into a practical cipher by Vigenère (published in 1586)
Find the length of the key. Divide the message into that many shift cipher encryptions. Use frequency analysis to solve the resulting shift ciphers.
Note: two identical segments of plaintext, will be encrypted to the same ciphertext, if the they occur in the text at the distance Δ, (Δ≡0 (mod m), m is the key length). Algorithm: Search for pairs of identical segments of length at least 3 Record distances between the two segments: Δ1, Δ2, … m divides gcd(Δ1, Δ2, …)
Key K I N G K I N G K I N G K I N G K I N G K I N G PT t h e s u n a n d t h e m a n i n t h e m o o n CT D P R Y E V N T N B U K W I A O X B U K W W B T