Basic Cryptanalysis
Basic Cryptanalysis
T
Semester Genap 2019/2020
Basic Cryptanalysis
1. Cryptanalysis
Outline 2. Cryptanalysis on Cryptography Classic
2
Basic Cryptanalysis
1 CRYPTANALYSIS
Basic Cryptanalysis 3
Cryptanalysis
As cryptography is the science and art of creating secret
codes, cryptanalysis is the science and art of breaking
those codes.
Basic Cryptanalysis 4
Ciphertext-Only Attack
Basic Cryptanalysis 5
Known-Plaintext Attack
Basic Cryptanalysis 6
Chosen-Plaintext Attack
Basic Cryptanalysis 7
Chosen-Ciphertext Attack
Basic Cryptanalysis 8
Brute force Attack
Basic Cryptanalysis 9
Brute force Attack
Basic Cryptanalysis 10
Statistical Attack
Basic Cryptanalysis 11
Pattern Attack
Basic Cryptanalysis 12
2 Cryptanalysis on Cryptography Classic
Basic Cryptanalysis 1
3
Cryptanalysis: Additive Cipher
Eve has intercepted the ciphertext “UVACLYFZLJBYL”. Show how
she can use a brute-force attack to break the cipher.
Solution
Eve tries keys from 1 to 7. With a key of 7, the plaintext is “not very
secure”, which makes sense.
Basic Cryptanalysis 14
Cryptanalysis: Additive Cipher cont…
Frequency of characters in English
Basic Cryptanalysis 15
Cryptanalysis: Additive Cipher cont…
Eve has intercepted the following ciphertext. Using a statistical
attack, find the plaintext.
Solution
Basic Cryptanalysis 16
Cryptanalysis: Vigenere Cipher
Let us assume we have intercepted the following ciphertext:
Basic Cryptanalysis 17
Cryptanalysis: Vigenere Cipher Cont…
The greatest common divisor of differences is 4, which means that the
key length is multiple of 4. First try m = 4.
Basic Cryptanalysis 18
Cryptanalysis: Hill Cipher
Assume that Eve knows that m = 3. She has intercepted three
plaintext/ciphertext pair blocks (not necessarily from the same
message) as shown in the following figure:
Basic Cryptanalysis 19
Cryptanalysis: Hill Cipher Cont…
She makes matrices P and C from these pairs. Because P is
invertible, she inverts the P matrix and multiplies it by C to get the
K matrix as shown in the following figure:
Now she has the key and can break any ciphertext encrypted with
that key.
Basic Cryptanalysis 20
Quiz
C P
24 24 21 4 1 3 6 9
20 24 8 6 12 8 9 22
18 0 12 8 13 25 8 1
16 21 9 20 24 5 21 9
3.21
Lifelong Learning
THANKS YOU
22