FreeDeskTools

Cryptographic Secret Sharing Tool

Last Updated: July 14, 2026

Split a Secret into Secure M-of-N Recovery Shares

Real Shamir Secret Sharing in GF(28), calculated inside a self-tested Web Worker. This tool never transmits your secret or shares.

Zero Knowledge CSPRNG Coefficients Offline Ready Self-Testing…

No browser persistence, cookies, logging, telemetry, or secret-dependent server calls. Downloads, printing, and clipboard access happen only when you request them.

0 characters · 0 bytes

The original text is encoded as UTF-8 without normalization. Maximum: 65,536 bytes; Base58 uses a 16,384-byte practical limit, while Hex and Base64 support the full size.

How Shamir Secret Sharing Works

Open Educational Panel

The secret becomes the constant term a₀ of a random polynomial f(x) = a₀ + a₁x + … + aₘ₋₁xᵐ⁻¹. Each share is one point on that polynomial.

This implementation creates an independent polynomial for every UTF-8 byte in GF(28) using the AES irreducible polynomial x⁸ + x⁴ + x³ + x + 1.

Any M distinct points determine a degree M−1 polynomial. Lagrange interpolation evaluates it at x = 0 to recover a₀. Fewer than M shares leave every possible secret equally likely under the ideal scheme.

Threshold examples: 2-of-3 tolerates 1 lost share; 3-of-5 tolerates 2; 5-of-8 tolerates 3. Higher thresholds reduce unauthorized recovery risk but increase the chance of permanent loss.

Threat Model & Storage Guidance

Open Security Analysis

Advantages: no single share reveals the secret payload; geographic distribution protects against theft, fire, and one-site failure.

Limitations: this is not verifiable secret sharing. Checksums detect accidental corruption, not malicious replacement. With exactly M forged but checksum-valid shares, interpolation still produces some output.

Storage: never keep all shares together. Use separate trusted custodians, safes, or geographic sites. Consider fireproof paper or engraved metal for long-term crypto backups.

Recovery: test your plan with a non-production secret first. Document who holds each share and how authorized recovery will work during an incident.

Browser limits: typed arrays are overwritten where practical, but JavaScript engines, browser extensions, XSS, screenshots, and the operating-system clipboard are outside this tool's memory-erasure guarantee.

Share QR Code

Scan only with a trusted offline QR reader. Some third-party scanner apps upload scanned content.

Wipe This Session?

This removes the secret, generated shares, recovery inputs, recovered output, and worker state from this page. Browser JavaScript cannot erase copies held by the operating-system clipboard or browser extensions.

Split seed phrases, private keys, passwords, and API secrets into cryptographically secure M-of-N Shamir shares. Reconstruct locally with automatic checksum, group, duplicate, and threshold validation. Zero uploads and offline ready.

Self-Tested GF(256)
CSPRNG Only
Zero-Knowledge
Offline Ready

How To Use

Follow these simple steps to get started with cryptographic secret sharing tool.

1

Enter the secret

Open Split Secret and enter the exact seed phrase, key, password, or recovery value. Optional BIP39 analysis runs locally and never changes the text.

2

Choose M and N

Set the total share count N from 2–16 and the threshold M from 2–N. The interface explains how many shares are needed and how many may be lost.

3

Generate and distribute

Generate with crypto.getRandomValues(), then copy, print, or download each SSS1 share as TXT, JSON, QR, or a ZIP bundle. Store shares separately.

4

Test recovery

Switch to Combine Shares, paste at least M shares in any order, and confirm the tool validates checksums, metadata, group identity, and coordinates before interpolation.

5

Wipe the session

After distribution or recovery, use Wipe Session to clear the DOM, references, typed arrays, and worker process from the page.

Real-World Examples

Practical situations where cryptographic secret sharing tool helps solve real problems.

Cryptocurrency Seed Phrase Backup

Create a 3-of-5 recovery plan for a BIP39 wallet phrase, then store shares with separate custodians or in geographically isolated safes.

Enterprise Root Secret Escrow

Require several authorized administrators to recover a root password, break-glass credential, certificate passphrase, or encryption key during an incident.

DevOps & API Key Recovery

Distribute high-value API keys, deployment secrets, or password-manager recovery data across independent team members without one holder possessing the full secret.

Disaster Recovery Planning

Design a backup that survives fire, theft, hardware loss, or one unavailable custodian while still requiring a deliberate recovery quorum.

Why Use This Tool

Discover how this tool can improve your workflow and productivity.

Real Threshold Cryptography

Uses Shamir's 1979 polynomial scheme in GF(2^8), not simple text chunking. Any M valid shares recover the secret; fewer than M reveal no payload information under the ideal scheme.

Cryptographically Secure Randomness

Every polynomial coefficient and 128-bit group identifier comes only from crypto.getRandomValues(). Math.random() and deterministic pseudo-random generators are never used.

Strict Share Validation

Versioned SSS1 envelopes detect malformed encodings, accidental corruption, duplicate coordinates, wrong thresholds, mismatched groups, and inconsistent extra shares before recovery.

BIP39-Aware Backups

Recognizes 12, 15, 18, 21, and 24-word phrases and validates English BIP39 checksums without changing or blocking the original text you choose to split.

Portable Shares & QR Codes

Export individual shares as Base58, Hex, Base64, TXT, JSON, scannable QR PNG/SVG, print layouts, or a ZIP archive for controlled physical distribution.

Zero-Knowledge Web Worker

Finite-field arithmetic and Lagrange interpolation run off the main thread. No secret, share, or recovered value is uploaded, stored, logged, cached, or persisted.

Common Use Cases

Practical scenarios where this tool can help you get things done.

Cryptocurrency Seed Phrase Backup

Create a 3-of-5 recovery plan for a BIP39 wallet phrase, then store shares with separate custodians or in geographically isolated safes.

Enterprise Root Secret Escrow

Require several authorized administrators to recover a root password, break-glass credential, certificate passphrase, or encryption key during an incident.

DevOps & API Key Recovery

Distribute high-value API keys, deployment secrets, or password-manager recovery data across independent team members without one holder possessing the full secret.

Disaster Recovery Planning

Design a backup that survives fire, theft, hardware loss, or one unavailable custodian while still requiring a deliberate recovery quorum.

Tool Summary

Quick facts about this tool at a glance.

Purpose Split arbitrary UTF-8 secrets into M-of-N Shamir recovery shares and reconstruct them locally after strict envelope, checksum, threshold, group, duplicate, and consistency validation.
Best For Crypto investors, security engineers, DevOps teams, enterprise IT, incident response, privacy advocates, and anyone protecting a seed phrase, private key, root credential, or recovery secret.
Processing 100% browser-side in a TypeScript Web Worker using GF(2^8), crypto.getRandomValues(), SHA-256 checksums, and Lagrange interpolation.
Cost Free.
Sign-Up Required No.
Data Storage None. Secrets and shares remain in volatile browser memory until wiped or the tab closes.

What Is Cryptographic Secret Sharing Tool?

A Shamir Secret Sharing tool is a threshold-cryptography application that represents a secret as the constant term of a random polynomial and distributes points on that polynomial as shares. This implementation creates independent degree M−1 polynomials for every UTF-8 byte in GF(2^8), uses crypto.getRandomValues() for every random coefficient, packages each point in a checksummed SSS1 envelope, and reconstructs the secret with Lagrange interpolation at x = 0. Any M of N valid shares can recover the secret; fewer than M reveal no information about the secret payload under the ideal scheme.

About This Tool

What Is Shamir Secret Sharing?

Shamir Secret Sharing is a threshold cryptography method created by Adi Shamir in 1979. Instead of cutting a secret into readable fragments, it creates mathematically independent shares. You choose N total shares and a threshold M. Any M shares recover the secret, while fewer than M reveal no information about the secret payload under the ideal scheme.

Why M-of-N Matters

A single backup creates a single point of failure. A 3-of-5 plan spreads risk: an attacker needs 3 shares, while you may lose 2 and still recover. This balance makes threshold sharing useful for crypto wallet backups, enterprise break-glass credentials, API secrets, encryption keys, inheritance plans, and disaster recovery.

How the Mathematics Works

For each UTF-8 byte, the tool builds a random polynomial f(x) = a₀ + a₁x + … + aₘ₋₁xᵐ⁻¹. The secret byte is a₀. Every other coefficient comes from crypto.getRandomValues(). Share i contains the point (i, f(i)). M distinct points determine the degree M−1 polynomial, and Lagrange interpolation at x = 0 returns a₀.

Finite Field Arithmetic

All operations happen in GF(2^8), the 256-element field defined by the AES irreducible polynomial 0x11B. Addition and subtraction are XOR. Multiplication and inversion stay inside the field, so calculations are exact and never suffer floating-point rounding. A separate polynomial protects every byte of the secret.

SSS1 Recovery Shares

Each share uses a self-describing binary envelope with magic bytes, format version, field identifier, checksum identifier, random 128-bit group ID, threshold, total count, x-coordinate, UTF-8 length, payload, and a 128-bit truncated SHA-256 checksum. Hex, Base58, and Base64 are transport encodings for the same envelope. They do not change its security.

BIP39 Backup Strategy

The tool detects 12, 15, 18, 21, and 24-word phrases and checks English BIP39 words and checksum bits. It does not modify the mnemonic and never blocks splitting. SSS1 is not SLIP-0039, so wallet apps expecting SLIP-0039 mnemonic shares cannot import these encoded shares directly. Keep an offline copy of the tool with long-term backups.

Recovery Workflow

Paste shares in any order. Before interpolation, the tool verifies encoding, version, checksum, threshold, total, group ID, secret length, and unique coordinates. If you provide more than M shares, it evaluates the recovered polynomial against every extra point to expose inconsistency. This detects many mistakes, but it is not verifiable secret sharing and cannot authenticate a maliciously replaced group.

Offline Security

The finite-field engine and BIP39 validator run in a Web Worker. QR, ZIP, and image-decoder libraries are bundled client assets rather than remote services. Load/cache all required assets before disconnecting. No secret-dependent network request, server API, storage database, analytics call, cookie, or telemetry event exists in the tool.

Common Mistakes

Never keep all shares together, email them in one thread, or upload the full set to one cloud account. Do not assume a checksum proves who created a share. Do not choose a threshold that your future recovery team cannot assemble. Do not skip a non-production recovery test. Do not scan QR shares with an untrusted app that may upload them.

Best Practices

Use separate physical and organizational failure domains. Record who holds each share without copying its contents. Prefer fire-resistant paper or engraved metal for long-term seed backups. Rotate the group after suspected exposure or custodian changes. Test the procedure periodically, then wipe every browser session used for generation or recovery.

Quick Summary

This zero-knowledge Shamir Secret Sharing Tool splits seed phrases, private keys, passwords, API keys, and arbitrary UTF-8 secrets into 2–16 recovery shares with a configurable M-of-N threshold. It implements real Shamir polynomial sharing in GF(2^8) using the AES 0x11B field, independent random coefficients from crypto.getRandomValues(), and Lagrange interpolation in a TypeScript Web Worker. SSS1 share envelopes include version, field, 128-bit group ID, threshold, total, coordinate, secret length, and a domain-separated SHA-256/128 checksum. Share validation detects malformed Hex/Base58/Base64, unknown versions, checksum damage, duplicates, mismatched groups, wrong metadata, and inconsistent extra points. English BIP39 checksums are recognized for 12/15/18/21/24-word phrases without blocking non-standard input. Export TXT, JSON, QR PNG/SVG, print layouts, or ZIP; import text, JSON, or QR images. No data is uploaded, logged, stored, or persisted.

Related Concepts

Explore related terms and topics associated with cryptographic secret sharing tool.

shamir secret sharing online toolsplit crypto seed phrase into sharesm of n secret sharing browserclient side secret splitter securereconstruct shamir secret online freeBIP39 seed phrase secret sharingShamir recovery shares generatorthreshold cryptography toolsplit private key into multiple partsoffline secret sharing calculator3 of 5 secret sharingGF256 Shamir secret sharing

Frequently Asked Questions

Common questions about cryptographic secret sharing tool.

How do I securely split a secret phrase into multiple pieces online?

Open Split Secret, enter the phrase, choose the total number of shares (N) and the recovery threshold (M), select Base58, Hex, or Base64, then generate. This tool runs real Shamir Secret Sharing inside a browser Web Worker. Download or print each share and store them separately. For high-value secrets, load the page and optional QR assets first, disconnect from the network, generate the shares, verify a recovery with test data, and wipe the session when finished.

Are my private keys or seed phrases sent to an external server?

No. Secret encoding, random coefficient generation, finite-field arithmetic, checksums, QR rendering, share parsing, and reconstruction all happen on your device. The tool does not use fetch, beacons, XMLHttpRequest, WebSockets, localStorage, sessionStorage, IndexedDB, cookies, analytics, or telemetry. Values exist only in browser memory until you wipe or close the tab.

What does a threshold of M out of N parts mean?

N is the total number of shares and M is the minimum required to recover the secret. In a 3-of-5 plan, any 3 distinct shares reconstruct the secret, while 1 or 2 cannot. You may lose up to N−M shares. Choose M high enough to prevent one person from recovering the secret, but low enough that unavailable custodians do not cause permanent loss.

Can a single share reveal any information about my original secret?

The share payload reveals no information about the original secret under ideal Shamir Secret Sharing with uniformly random coefficients: for fewer than M points, every possible secret remains equally likely. The envelope still exposes operational metadata such as byte length, threshold, total shares, share number, and group linkage. Shamir also cannot protect you if the browser, device, or generation code is compromised.

Does this tool work completely offline if I download the page?

The split and combine engine works locally after the application assets are loaded. For full QR, image-import, and ZIP functionality offline, make sure those bundled assets have loaded or are available in your saved deployment/cache before disconnecting. No secret-dependent request is ever made. A production offline copy should include the generated JavaScript worker and asset chunks, not only a lone HTML file.

What is Shamir Secret Sharing?

Shamir Secret Sharing is a threshold scheme published by Adi Shamir in 1979. It stores a secret as the constant term of a random polynomial and gives each participant a different point on that polynomial. M points determine a degree M−1 polynomial; fewer points leave the secret mathematically undetermined.

Which finite field does this implementation use?

It uses GF(2^8), the 256-element binary field defined by the AES irreducible polynomial x^8 + x^4 + x^3 + x + 1 (0x11B). Every UTF-8 byte receives its own independent random polynomial. GF(2^8) is efficient, exact, and naturally supports arbitrary byte strings without large-integer rounding errors.

How does Lagrange interpolation recover the secret?

Each share supplies a polynomial point (x, f(x)). With M distinct coordinates, Lagrange interpolation computes the unique degree M−1 polynomial through those points. Evaluating the interpolation at x = 0 returns f(0), which is the secret byte. All addition, multiplication, division, and inversion happen inside GF(2^8), not ordinary integer arithmetic.

Can I split a 12-word or 24-word BIP39 seed phrase?

Yes. The tool detects standard 12, 15, 18, 21, and 24-word counts and validates the checksum against the official English BIP39 wordlist. A warning never prevents splitting because some wallets use non-English lists, custom mnemonics, or intentionally invalid test phrases. The original text is shared exactly as entered.

Is this the same format as SLIP-0039?

No. This tool applies standard Shamir mathematics to arbitrary UTF-8 text and wraps points in the FreeDeskTools SSS1 envelope. SLIP-0039 is a separate mnemonic-share standard with its own wordlist, metadata, iteration exponent, and compatibility rules. Do not import SSS1 shares into a wallet expecting SLIP-0039.

Are shares compatible with every other Shamir tool?

Not automatically. Shamir's mathematics is standard, but tools differ in field polynomial, coordinate conventions, byte packing, metadata, checksums, and text encoding. SSS1 shares are self-describing for this implementation. Keep an offline copy of the tool and format documentation with long-term backups.

How does the tool detect a corrupted share?

Each binary envelope includes a 128-bit checksum made from the first 16 bytes of a domain-separated SHA-256 digest. This provides extremely strong accidental corruption detection. It is not authentication: anyone who can alter a share can also recompute its checksum. Active tampering requires signatures, a separately keyed MAC, or a verifiable secret-sharing protocol.

Can the tool identify which share is malicious?

Not reliably. Duplicate coordinates, metadata mismatches, checksum failures, and inconsistent extra points can be detected, but ordinary Shamir sharing is not verifiable secret sharing. With exactly M forged but structurally valid points, interpolation always produces some result. Extra shares can prove inconsistency without always identifying the culprit.

What is the best M-of-N setup for a crypto wallet?

There is no universal answer. 2-of-3 is simple and tolerates one loss, while 3-of-5 gives stronger separation and tolerates two losses. Consider who can collude, who may be unavailable, geographic risks, inheritance needs, and how often recovery will be tested. Never choose a threshold you may be unable to assemble years later.

Where should I store recovery shares?

Store shares in independent places: separate fire-rated safes, bank deposit boxes, trusted custodians, or geographically distant secure sites. Do not put all shares in one folder, cloud account, email thread, password manager, or building. For long-term wallet recovery, durable engraved metal may resist water and fire better than paper.

Can I store shares as QR codes?

Yes, when the encoded share fits a practical QR size. Export PNG or SVG, preserve the quiet zone, print at high contrast, and test scanning before relying on it. A QR code adds no encryption. Use a trusted offline scanner because many mobile scanner apps send scanned content to external services.

What happens if I lose too many shares?

If fewer than M valid shares remain, the secret is unrecoverable by design. There is no backdoor, password reset, or server copy. This protects against unauthorized recovery but makes testing, inventory records, durable storage, and carefully chosen thresholds essential.

Can I use more shares than the threshold during recovery?

Yes. The tool reconstructs from a deterministic threshold-sized basis and checks every extra share against that polynomial. Extra valid shares do not change the secret, but they can expose an inconsistent point. They do not turn the scheme into authenticated or error-correcting secret sharing.

Does the Wipe Session button securely erase browser memory?

It clears fields, drops JavaScript references, overwrites accessible typed arrays where practical, terminates the worker, and resets the DOM. JavaScript cannot guarantee forensic erasure of immutable strings, garbage-collected copies, operating-system clipboard contents, swap, screenshots, browser extensions, or compromised devices. Use a clean offline environment for the highest-value secrets.

How should enterprises use Shamir shares for disaster recovery?

Define custodians, approval rules, secure locations, succession plans, and a tested recovery ceremony. Record share identifiers without recording share contents. Separate physical and organizational failure domains, rotate shares after staff changes or suspected exposure, and combine Shamir with existing HSM, audit, and incident-response controls rather than treating it as a complete key-management system.

People Also Searched For

Explore related tools commonly used alongside this utility.

Reviewed by FreeDeskTools Editorial Team

Cryptographic Secret Sharing Tool has been reviewed for accuracy, usability, privacy, and browser-side performance. FreeDeskTools tools are designed to run locally whenever possible, helping users complete tasks quickly without unnecessary data collection.

Was this tool helpful?

Your feedback helps us improve Cryptographic Secret Sharing Tool and build better tools for everyone.

Free, private utilities for developer, text, image, calculator, marketing, productivity, and security workflows. No uploads, no sign-ups.