Sample code for 30+ languages & platforms
PHP

Diffie-Hellman Examples for Chilkat2 PHP