DiffieHellmanKeyExchange Example implementation of the Diffie Hellman key exchange in Java Potential implementation for a real case appliedPrivateKey is the result of base^privateKey % modulo