Diffie-Hellman Diffie-Hellman key exchange protocol and bruteforce cracking in Java *a must be a primitive root of q, i take a=3 at the moment! Example