Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 1.06 KB

README.md

File metadata and controls

12 lines (8 loc) · 1.06 KB

Elliptic Curve Diffie Hellman (ECDH) Implementation in PHP

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.

Requirements

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.

Usage

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.

License

This project is licensed under the MIT open source license.