Tested tool guide
Tested browser tools
Checked August 16, 2026
What Shamir Secret Sharing Tool does, with a checked example
This tool splits a secret into N shares and rebuilds it from any K of them, where K (the threshold) is at most N. It encodes the secret as the constant term of a random polynomial of degree K-1 over a finite field, then gives each share one point on that curve; interpolating any K points recovers the polynomial, and its constant term is the secret. The surprise is that K-1 shares reveal nothing at all, not even a partial guess, because every possible secret remains equally plausible. The common mistake is treating shares as fragments that leak bits, or assuming all N shares are required.
Worked example
A concrete input and expected output from the current implementation.
Input
Secret: 1234, N (shares): 5, K (threshold): 3, prime: 1613
->
Expected output
1: 1494
2: 329
3: 965
4: 176
5: 1188
Each share is one point on the polynomial f(x) = 1234 + 166x + 94x^2 evaluated modulo the prime 1613, whose constant term is the secret. The coefficients 166 and 94 are drawn at random, so a real run will differ; the arithmetic shown is fixed, and any three of the five points, for example (1, 1494), (2, 329), (3, 965), reconstruct 1234 by Lagrange interpolation.