Professional Documents
Culture Documents
Management
Lecture 4.2 - Cryptanalysis
Learning Objectives
Cryptanalysis
Cryptanalysis
Brute
Brute Force
Force Attack
Attack Frequency
Frequency Analysis
Analysis Attack
Attack
What is Cryptanalysis?
• Caesar Cipher
Start to decipher with key of 1, 2, 3, and hope to find
the right shift
Worst case, you have to try 25 keys
Brute Force a Caesar Ciphertext
Key=1:
Key=2:
Key=3:
Key=4:
Frequency Analysis
• https://www.youtube.com/watch?v=sMOZf4GN3oc
Letter Frequency
a 8.167%
b 1.492%
14.00%
12.00%
10.00%
Transposition 8.00%
6.00%
ciphertext
4.00%
with key ‘hello’ 2.00%
0.00%
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
Frequency in Transposition cipher
of Letters
14.00%
12.00%
10.00%
8.00%
Caesar ciphertext 6.00%
with key=4 4.00%
2.00%
0.00%
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
Quiz
• The frequency distribution of letters below is likely to be
that of
A. Caesar cipher
B. Columnar Transposition cipher
C. Vigenere cipher
D. Substitution cipher but not Caesar cipher
14.00%
12.00%
10.00%
8.00%
6.00%
4.00%
2.00%
0.00%
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
Quiz
• A given ciphertext has G as the highest frequency
frequency letter and V as the 2nd highest frequency
letter. This ciphertext is likely to produce by a
A. Rail fence Transposition cipher
B. Columnar Transposition cipher
C. Vigenere cipher
D. Caesar cipher
Quiz
• Given that a Caesar ciphertext has K as the highest
frequency letter. What is the key of the Caesar cipher?
A. 5
B. 6
C. 7
D. 8
Quiz
• Which of the following ciphertexts cannot be decrypted
using frequency analysis of letters?
A. Caesar cipher with key = 19
B. Monoalphabetic cipher using one of the
permutations of the alphabet letters as key
C. Vigenere cipher with key AAA
D. Transposition cipher with key WEAK
At the end of you should be able to:
the lesson,
• Explain and apply cryptanalysis techniques