*Solution that can be used for demonstrating Diffie-Hellmann key exchange*

Select NIST Curve over Prime Field

type in k:

resulting point Q :

Qx =

Qy =

Then k would be your private key and Q your public key

Will only work

Example: You recieve a point from another person (by email for instance) that with this system calculated his public key, a point we could call R.

You send him your public key Q (by email for instance)

Your shared secret key you would then be able to calculate as kR

He could calculate the same shared secret key by using his secret key and multiply this with your pulic key Q

type in k:

type in a point P that you know are on curve:

Px =

Py =

resulting point S:

Sx =

Sy =

The point at infinity is represented by 0,0

disclaimer: implementation is not rock solid industrial strength. Only for educational and illustrational purpose.

contact: