Livoa LogoLivoa
Agree Upon Two Numbers


Prime Number (param_p)= 541

Generator (param_g)= 11

Alice
Private Key


param_a=41

Public Key Generation


public_key_a=70

Sending Public key to BOB
Recieved public Key


(Expected sent by: BOB)

(Actually Sent by : EVE)

Generate Shared Key


using public_key_ea

shared_key_a=239

Eve
Private Keys


param_ea=21(For ALICE)

param_eb=31(For BOB)

Public Keys Generation


public_key_ea=339(For Alice)

public_key_eb=396(For Bob)

Interrupting the Transmission of Public Key Exchange
Sending Different public key to BOB


i.e. public_key_eb=396

Generating Shared Key


shared_key_b=70(for BOB)

shared_key_a=239(for ALICE)

Bob
Private Key


param_b=71

Public Key Generation


public_key_b=356

Sending Public key to ALICE
Recieved public Key


(Expected sent by: ALICE)

(Actually Sent by : EVE)

Generate Shared Key


using public_key_eb

shared_key_b=70

Public Key Generation


(param_g^Private key mod param_p)

Public Key Exchange
Shared Secret Key


(Shared public key ^ private key mod param_p)

Mitm

by V

0
0 uses