First, the parameters of the elliptic curve are defined. The complete graph based on the generator point G can then be visualized. By manually increasing the value of n (here, n = 4) step by step, the corresponding points on the curve can be traversed sequentially. For technical reasons, the value of p should not exceed 101.

In addition to the visualization, the key exchange can be simulated for both parties in the second tab („ECDH“). For this purpose, each party selects a secret value, a and b, respectively. In this setting, the private values should be chosen to be smaller than 11. To allow for a larger selection of possible keys, p can be set to 101. Based on the selected private values, the resulting points on the curve are calculated and displayed graphically.

In the end, both parties arrive at the same result. The shared secret can be chosen as either the x-coordinate or the y-coordinate.
Download of the Microsoft Excel file. Macros were omitted; due to the lambda-functions the result only works under Office 365 or Excel 2024.

Download ECDH_Excel_ENG_v09.xlsx

ECDH WebApp

