Diffie-Hellman concept code