Shamir Secret Sharing
Split a secret into shares and reconstruct it from any threshold subset.
- Input and output stay in memory and are gone when you leave this page.
Nothing saved
Input and output stay in memory and are gone when you leave this page. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
Secret
Split shares
What this tool does
Splits a secret into n shares of which any k reconstruct it, and recombines shares back into the secret. Displays a digest of the secret at split time so that a reconstruction can be checked against it: because the scheme itself offers no way to tell a correct reconstruction from a wrong one.
Shamir's Secret Sharing evaluates a random degree-k - 1 polynomial over GF(256) for each byte of the secret, using CSPRNG bytes from randomBytes for the non-constant coefficients. Any k shares uniquely determine the polynomial via Lagrange interpolation at x = 0; fewer than k shares leave every possible byte value equally likely.
How it runs
Main thread. GF(256) arithmetic over a 4 KB secret is a fraction of a millisecond.
Limits and non-goals
A reconstruction is not verified. Shamir has no integrity: any k shares of the right length produce a secret, and shares from two different splits produce a wrong one with no error. The digest shown at split time is this toolβs answer, and it only helps if the user kept it. Shares are not labelled or authenticated, so a modified share is undetectable. No SLIP-39, no share metadata, no two-level schemes.
Example
Secret attack at dawn, 5 shares, threshold 3 -> five hex strings of 15 bytes each. Any three reconstruct; any two produce nothing at all: not a partial secret, which is the property that distinguishes Shamir from splitting a string into thirds.
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.