Guide

THE TOOLBOX / SECURITY & CRYPTOGRAPHY

Shamir's Secret Sharing —
K-of-N Vault Splitter & Recovery Tool.

Split sensitive passwords, recovery phrases, or master keys into N cryptographic shares where any K shares reconstruct the original secret and K−1 shares reveal nothing—computed 100% offline over GF(256) with Web Crypto.

GF(256) · Web Crypto CSPRNG · 100% Offline
5
3
3-of-5 Scheme: Any 3 shares recover the exact secret; 2 or fewer shares reveal zero information.
Generated Vault Shares (0)
Enter your secret on the left and click Generate 5 Shares to split it locally with Web Crypto randomness.

THRESHOLD CRYPTOGRAPHY GUIDE

Using Shamir's Secret Sharing safely for backup and key custody.

1. Information-Theoretic Security

Unlike splitting a password in half (which weakens security), Shamir's Secret Sharing provides information-theoretic security: an attacker with K − 1 shares has zero mathematical advantage over pure guessing.

2. Geographic & Custodian Separation

Never store all K shares in the same cloud drive or physical safe. Distribute shares across independent locations (e.g., encrypted hardware drive, printed paper copy in a fireproof safe, and trusted co-custodian).

Frequently Asked Questions

How does Shamir's Secret Sharing work?

Shamir's Secret Sharing encodes each byte of your secret as the constant term of a random polynomial of degree K−1 over the finite field GF(256). Evaluating that polynomial at N distinct points produces N shares. Any K shares uniquely reconstruct the polynomial (and secret) via Lagrange interpolation, while K−1 or fewer shares are mathematically indistinguishable from random noise.

Is my secret ever sent over the network?

No. All GF(256) polynomial generation, Web Crypto CSPRNG randomness, and Lagrange interpolation run 100% locally in your browser. For maximum security with high-value keys, you can even disconnect from the internet after loading the page.

What K-of-N threshold should I choose for personal or team backups?

Common setups are 2-of-3 (one share at home, one in a bank safe or password manager, one with a trusted family member) or 3-of-5 for executive/engineering recovery keys so up to two shares can be lost or compromised without losing access.

Can a single share reveal the length of my secret?

Yes—standard Shamir Secret Sharing over GF(256) produces shares whose hex payload has the same byte length as the secret, though zero information about the secret’s actual characters or entropy is leaked.