====== Security: Diffie Hellman ====== ====== Schemat ======
Alice
Alice
Bob
Bob
n
n
b
b
Public
Public
ga mod n
ga mod n
gb mod n
gb mod n
(gb)a mod n
(gb)a mod n
(ga)b mod n
(ga)b mod n
gab mod n
gab mod n
gab mod n
gab mod n
g n
g n
ga gb
ga gb
ga+b
ga+b
a
a
0
0
1
1
2
2
3
3
...
...
ga mod n
ga mod n
gb mod n
gb mod n
(ga)b mod n
(ga)b mod n

Diffie–Hellman key exchange

Diffie–Hellman key exchange
Author: Kacper Ostrowski
Author: Kacper Ostrowski
1. Alice and bob agree on public parameters
1. Alice and bob agree on public paramete...
2. Alice combines her secret key (a) with
the parameters and sends the resulting key to bob
2. Alice combines her secret key (a) with...
3. Bob combines his secret key (b) with the
parameters and sends the resulting public key to Alice
3. Bob combines his secret key (b) with the...
4. Alice combines result with her secret key
4. Alice combines result with her secret...
5. Bob combines result with her secret key
5. Bob combines result with her secret k...
Hacker can
only see those
Hacker...
6. Alice and Bob have a shared secret!
6. Alice and Bob have a shared secre...
źródła: \\ {{youtube>Yjrfm_oRO0w?}} https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange