Sample code for 30+ languages & platforms
Chilkat2 Java

Diffie-Hellman Examples for Chilkat2 Java