/ecdh-php

A port of Andrea Corbellini's python ECDHE and ECDSA implementations from python to PHP

Primary LanguagePHPMIT LicenseMIT

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.