A port of Andrea Corbellini's python ECDHE and ECDSA implementations from python to PHP. Includes functions for ECDH key generation, ECDHE key exchange, and ECDSA signing and verification.
The script has been tested with PHP 7.2. GMP for PHP is required (for working with large integers). See https://www.php.net/manual/en/book.gmp.php for more information, including installation instructions. This page on Stackoverflow is also helpful.
Simply copy ecdh.php to your web server, and point your browser to the URL for ecdh.php. It should produce output similar to that shown in output.html.
This project is licensed under the MIT open source license.