Shamir Secret Sharing (SSS)

A browser-only implementation of Adi Shamir's 1979 secret-sharing scheme — the same construction used by Hashicorp Vault for its master key and by Trezor for sharded crypto seed backups. Choose how many shares to produce (N up to 255) and how many are needed to reconstruct (K, the threshold). Distribute the shares across people, devices, or safe-deposit boxes. Common real uses: splitting a 24-word wallet seed across three trustees so any two can recover it, escrowing a company root password 3-of-5 across executives, or making sure a partner can access important accounts if something happens to you.

How to use

1
Choose N and K

Pick N (how many shares to make) and K (how many you need to recover). Common choices: 2-of-3 for personal, 3-of-5 for small team, 5-of-7 for high-value escrow.

2
Type the secret

Master password, seed phrase, encryption key — anything up to a few hundred bytes works.

3
Distribute the shares

Give each share to a different person, location, or device. Write them on paper, print them, or save in separate password managers.

4
Recover when needed

When you need the secret, gather K of the shares, paste them into the Combine tab, and the secret is reconstructed.

Split a master password or seed phrase into N pieces — any K of them recover it, fewer reveal nothing

You will receive N shares. Any K of them reconstruct the secret. Fewer than K reveal nothing — not even partial information.
All shares below belong to one set. Splitting again creates a NEW set, and the older shares stop working — you can only recover a secret from shares of the same set.

What Shamir Secret Sharing does

  • Information-theoretic security: with fewer than K shares, an attacker learns NOTHING about the secret — not even its length.
  • Each share carries a small header (version, threshold, set id) plus a 4-byte integrity tag, so Combine can verify a correct recovery and clearly flag mismatched or insufficient shares.
  • Uses the standard byte-wise scheme over GF(2^8) — the same algebra as AES, well-vetted across decades.
  • Distribute shares across people, devices, geographic locations. Recovery only needs K of them.
  • This implementation does NOT add any password layer on top — the shares ARE the protection. If a share leaks, you have lost one fraction of your safety margin.
Copied

Features

Information-theoretic security
Unlike encryption, Shamir gives perfect secrecy: K−1 shares contain zero information about the secret. The math comes from polynomial interpolation over a finite field.
GF(2⁸) byte-wise
Each byte is split independently with the same finite-field algebra used in AES — vetted, fast, and standard.
Up to 255 shares
Split into 2-of-3 for family backup, 3-of-5 for company key escrow, or any (K, N) up to N = 255.
Verified recovery
A built-in integrity tag means Combine confirms the secret is reconstructed exactly — and gives a clear error for mismatched, insufficient, or cross-set shares instead of returning silent garbage.
Cryptographically secure randomness
The randomness driving the share generation comes from your browser's secure random source — never the weak Math.random. Critical: weak randomness would let an attacker reconstruct the secret from fewer than K shares.
Runs in your browser
Splitting and recombining are performed in your browser tab via the Web Crypto API. The polynomial interpolation over GF(2⁸) is computed client-side in JavaScript — no /split or /combine endpoint exists for this tool, the algorithm is shipped in the page assets.

FAQ

How is this different from encrypting and giving everyone the password?

Encryption splits the secret into ciphertext + key — anyone with both has full access. Shamir splits the secret directly into N pieces; you need K of them, and K−1 shares reveal nothing mathematically (not just computationally).

What is a good (K, N)?

2-of-3 is the popular default for individuals (two locations, you, partner, lawyer). 3-of-5 for small teams. Higher K reduces risk of compromise; higher N improves survivability against loss.

Can I trust the implementation?

It uses the standard byte-wise Shamir scheme over GF(2⁸) — the same construction used by Hashicorp Vault, Trezor SLIP-0039 (BIP-39 sharded backups) and most other production SSS implementations. Splitting and combining run in your browser via the Web Crypto API.

What if a share is lost?

As long as at least K shares remain, the secret can be recovered. Distribute N > K to add redundancy — a 3-of-5 scheme survives losing 2 shares.

What if a share is leaked to an attacker?

If fewer than K are leaked, your secret is still safe. You should rotate the secret and redistribute new shares; the old ones can no longer recover anything because the underlying secret has changed.

What share format does it use?

The underlying math is the canonical byte-wise scheme over GF(2⁸) with the standard 0x11b reduction polynomial. Each share is wrapped in a small self-describing container (version, threshold, set id, and an integrity tag) so the tool can verify recovery and detect mismatched shares — recover the shares with this tool rather than a raw GF(256) library.

How do you rate this tool?

Thank you for your rating!
Want to share more? Leave a comment!
Thank you! Your comment will appear after moderation.
Published Authors: