Cryptography Basics
Network Security Instructor: Haojin Zhu
1
Cryptography Basics Network Security Instructor: Haojin Zhu 1 - - PowerPoint PPT Presentation
Cryptography Basics Network Security Instructor: Haojin Zhu 1 Cryptography What is cryptography? Related fields: Cryptography ("secret writing"): Making secret messages Turning plaintext (an ordinary readable message)
1
– Cryptography ("secret writing"): Making secret messages
(secret messages that are “hard” to read)
– Cryptanalysis: Breaking secret messages
insecure medium (like the Internet)
5-8
Integrity components
without being detected
Authenticity components
A passive eavesdropper, who can listen to any
transmitted messages
modify, insert, or delete, transmitted messages
5
6
7
8
5-8
5-8
can do
403,291,461,126,605,635,584,000,000 possible keys
5-8
corresponding plaintext/ciphertext pairs
5-8
5-8
5-22
as the message
each just XOR
5-22
16
– typically by sending the key over a secure channel
17
18
19
20
21
5-22
enough work by Eve
5-22
5-22
5-22
5-22
“DES cracker" machine of Electronic Frontier Foundation
5-22
wait until computers get 2^88 times faster, then break it
How long do we wait? Moore’s law says 132 years. If we believe Moore’s law will keep on working, we’ll be able to break 128-bit crypto in 132 years (and 18 hours) :-)
5-23
plaintext
31
32
33
34
35
36
37
38
40
Plaintext: C R Y P T O G R A P H Y Key: L U C K L U C K L U C K Ciphertext: N L A Z E I I B L J J I
41
CS526 Topic 2: Classical Cryptography 42
CS526 Topic 2: Classical Cryptography 43
CS526 Topic 2: Classical Cryptography 44
K I N G K I N G K I N G K I N G K I N G K I N G
t h e s u n a n d t h e m a n i n t h e m o o n
D P R Y E V N T N B U K W I A O X B U K W W B T
45
46
47
48
5-26
Block ciphers
5-26
5-28
different messages? How would you solve this problem without requiring a new shared secret key for each message? Where have we seen this technique before?
5-29
time
5-29
5-29
5-29
56
128 M1 M2 M3 M4 128 46 + padding 128
C1 C2 C3 C4 128 128 128 128
57
Initialization Vector
128 128 128 128
128 128 46 + padding 128