Home▸Cryptography▸Shamir Threshold Secret Sharing: Polynomial Shares, Lagrange Reconstruction and Perfect Secrecy (2D)

Shamir Threshold Secret Sharing: Polynomial Shares, Lagrange Reconstruction and Perfect Secrecy (2D)

A front view of the same threshold scheme: each holder's share plotted as f(i) mod P, keys lighting up in turn and the vault opening at k keys. Same shared algebra as the 3D scene, with the uncertainty-versus-shares curve.

Cryptography2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Shamir Threshold Secret Sharing: Polynomial Shares, Lagrange Reconstruction and Perfect Secrecy (2D) ↗ Open standalone

Hide a secret number in a random polynomial over a prime field, hand a share to each key holder and open the vault only when enough of them come together. Change the threshold, the number of holders, the shares collected, the secret and the field size to see that k shares rebuild the secret exactly while k minus one shares leave every value equally likely. A Blender-built vault hall, with exact numerical checks including a brute-force secrecy count.

⚙ Under the hood

A front view of the same threshold scheme: each holder's share plotted as f(i) mod P, keys lighting up in turn and the vault opening at k keys. Same shared algebra as the 3D scene, with the uncertainty-versus-shares curve.

Shamir Secret SharingThreshold CryptographyLagrange InterpolationFinite FieldPerfect Secrecy

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)