Diffie-Hellman Key Exchange using Elliptic Curve

All inputs must be numbers, G must be a point on the curve

nA and nB are optional but must be less than the order of the point G

a b p
Gx Gy
nA nB
PA PB K

Made by Bechara Rizk