.
choose two random numbers a and b respectively in the range between 1 to p-1. Now each of them secretly computes A=g^a(mod p) and B=g^b(mod p). Then Alice sends A to Bob and Bob sends B to Alice. The malicious eavesdropper can see A and B but due to the DLP problem has a super hard time when trying