Victor OSTERTAG
Monday 26th of March 2018
Presentation for HP Labs
Cryptography
INTRODUCTION
A BRIEF HISTORY
MODERN CIPHERS
CONCLUSION
Presentation for HP Labs
Cryptography
Victor Ostertag
Software Engineering background
Presentation for HP Labs
Cryptography
Present Spectre and Meltdown to people with no CS background
Present cryptography in a way that everyone can understand
Cryptography
Presentation for HP Labs
Presentation for HP Labs
Cryptography
A
B
E
lice
ob
ve
It's all about solving the following problem:
Presentation for HP Labs
Cryptography
Share a key to a lock
ENCRYPTION
DECRYPTION
Presentation for HP Labs
Cryptography
Cryptography
Secret
Message
"Hello, I am doing a presentation for HP Labs"
"Khoor, L dp grlqj d suhvhqwdwlrq iru KS Odev"
"Hello, I am doing a presentation for HP Labs"
CIPHER
Some information
Presentation for HP Labs
Cryptography
Shift each letter by a certain amount
With a shift of 3:
A | D |
---|---|
B | E |
C | F |
D | G |
E | H |
Presentation for HP Labs
Cryptography
"Hello, I am doing a presentation for HP Labs"
"Khoor, L dp grlqj d suhvhqwdwlrq iru KS Odev"
Presentation for HP Labs
Cryptography
Trying all the possibles keys
"Jgnnq, K co fqkpi c rtgugpvcvkqp hqt JR Ncdu"
Shift of 1
"Ifmmp, J bn epjoh b qsftfoubujpo gps IQ Mbct"
Shift of 2
"Hello, I am doing a presentation for HP Labs"
Shift of 3
Presentation for HP Labs
Cryptography
"Hello, I am doing a presentation for HP Labs"
Some letters are more frequent than others...
Presentation for HP Labs
Cryptography
Normal
New
Presentation for HP Labs
Cryptography
Easy to break using brute force
Frequency analysis
gives us the key
HOW TO AVOID THAT?
Presentation for HP Labs
Cryptography
FLATTEN THE FINGERPRINT
MORE KEYS (KEY SPACE)
Presentation for HP Labs
Cryptography
Use a word as a key
HPL
Convert it to numbers
8 16 12
Presentation for HP Labs
Cryptography
"Hello, I am doing a presentation for HP Labs"
8 16 12
8
16
12
8
16
12
"Hello, I am doing a presentation for HP Labs"
Presentation for HP Labs
Cryptography
"Otwsd, t hb ovxyn p aytdlcehitvc qvg sw alih"
But there still is a problem...
Presentation for HP Labs
Cryptography
"Hello, I am doing a presentation for HP Labs"
We need to find the length of the key
Presentation for HP Labs
Cryptography
Create frequency tables for different intervals
No result
No result
Clear pattern
Interval of 2
Interval of 3
Interval of X
Presentation for HP Labs
Cryptography
How to avoid repetition?
Sequence of shifts as long as the text
Randomness
Presentation for HP Labs
Cryptography
Unbreakable!
What about brute force?
3.3424674e+49 possibilities!
30000000000000000000000000000000000000000000000000
Cryptography
Presentation for HP Labs
Presentation for HP Labs
Cryptography
What we have seen so far
Have to share a key beforehand
Presentation for HP Labs
Cryptography
Stream Cipher
Encrypts each letter one at a time
Block Cipher
Encrypts the text in blocks
Presentation for HP Labs
Cryptography
MEETING
IMPOSSIBLE
Alice
Bank
YouTube
IMPRACTICAL
Presentation for HP Labs
Cryptography
A
B
E
lice
ob
ve
Public key
Private key
It is indeed Alice!
Presentation for HP Labs
Cryptography
Easy
Hard
TRAPDOOR ONE-WAY FUNCTION
The Trapdoor
Presentation for HP Labs
Cryptography
Counts the number of coprime of a given number
8
7
6
5
4
3
2
1
Presentation for HP Labs
Cryptography
Phi (prime) = prime - 1
Phi (m * n) = Phi (m) * Phi (n)
Two important properties:
Presentation for HP Labs
Cryptography
Presentation for HP Labs
Cryptography
To convert a message M into a cipher C:
C = M ^ e (mod(n))
To decrypt:
M = C ^ d (mod(n))
Cryptography
Presentation for HP Labs
Presentation for HP Labs
Cryptography
We only scratched the surface!
Hash functions
Random numbers
Networks