Deffie-Hellman key exchange protocol is a method which allows two parties to establish a shared secret key (session key) over an insecure channel without having to send that key through the channel. A simple code written in Java will explain it to you. Read Blog page ---->