Diffie-Hellman is a way to generate a shared secret between two people, hence the secret can’t be seen by sniffer the communication which is well known eavesdrop in cyber world.