PPolySim OS
Use case · powered by Diffie-Hellman

Diffie-Hellman for a zero-knowledge proof

Simulate a zero-knowledge proof live in your browser. This runs the real Diffie-Hellman solver — adjust the inputs, watch it respond instantly, and export the result. No install, no account.

Diffie-Hellman Key ExchangeLive
Alice
secret a = 6
sends A = g^a = 8
key = B^a = 2
Bob
secret b = 15
sends B = g^b = 19
key = A^b = 2
Eavesdropper sees g=5, p=23, A=8, B=19 — but cannot find the key 2

Controls

Presets

Diffie-Hellman lets two strangers agree on a secret key while an eavesdropper hears everything. Both share public numbers g and p, each picks a private exponent, and they exchange g raised to it. Raising the other's public value to your own secret yields the same shared key — yet recovering it from the public traffic requires solving the discrete logarithm, which is infeasible.

▶ Run in Python

Data Inspector

Alice sends A8
Bob sends B19
Shared secret2
Match?yes ✓

Governing equation

Reading this result: Both sides arrive at the same key 2 because (g^a)^b and (g^b)^a are the same value mod 23 — yet an eavesdropper who sees g, p, A and B must still solve a discrete logarithm to recover it.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

About this simulation

The full Diffie-Hellman tool models a zero-knowledge proof with the same numerics engineers and scientists use — running entirely client-side. Change any parameter and the result updates in real time, so you can build intuition, check a design, or teach the concept without spreadsheets or installs.

More you can do with Diffie-Hellman

Other ways to simulate a zero-knowledge proof

Frequently asked questions

How do I simulate a zero-knowledge proof?
Open this page and use the live Diffie-Hellman tool below — set your inputs and the simulation runs instantly in your browser using real numerics. No install, no account needed.
Is it free?
Yes. The simulation runs free in your browser. A one-time unlock or a Pro plan adds advanced parameters, saved presets, data import, and clean exports.
Can I use my own numbers?
Absolutely — every input is adjustable, and with data import you can drive a zero-knowledge proof from your own measurements.