Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Security

Shamir Secret Sharing

· Last updated:2026-06-25

Split a secret into n shares where any k (the threshold) are required to reconstruct it — Shamir's k-of-n scheme over GF(256). Pure in-process cryptography (crypto.randomBytes for polynomial coefficients), no network. Split a password/key/passphrase into shares held by separate people, then combine any k of them to recover it. Confidentiality only — no authenticity.

Details

What this tool helps you do

This tool implements Shamir's threshold secret sharing over GF(256): a secret is split into n shares, and any k of them (the threshold) can reconstruct it, while k-1 or fewer reveal nothing about the secret — information-theoretic secrecy.

Two modes:

  • Split: paste a secret (any UTF-8 text — a password, API key, seed phrase, recovery phrase), set the threshold k and total n (2 ≤ k ≤ n ≤ 255), and you get n shares. Distribute each share to a separate holder.
  • Combine: paste k or more shares (one per line) to reconstruct the original secret via Lagrange interpolation at x=0.

How it works. Each byte of the secret is the constant term of a random polynomial of degree k-1 over GF(256). Share i is the polynomial evaluated at x=i. Recovering requires k points to uniquely determine a degree k-1 polynomial. Polynomial coefficients are drawn from crypto.randomBytes() — the OS CSPRNG — never Math.random().

Limitations — please read:

  • Confidentiality only, no integrity. Anyone holding a share can submit a forged value during recovery; the math will produce a plausible-but-wrong secret and you won't know. If you need to detect tampering, sign the secret (or its hash) before splitting and verify after combining.
  • GF(256) bounds. n is capped at 255 (the field size), and k must be ≥ 2.
  • Share format. Each share is sss: + base64url of [x-coordinate, y-byte₁, y-byte₂, …]. Keep the whole string intact; truncating breaks recovery.

Use cases. Key escrow / recovery (split a master key across executives), social recovery for self-custodied wallets, distributing a passphrase so no single person holds it, "dead man's switch" secret retrieval.

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team
Encryption40

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Security
Input types
select, textarea, number
Output type
html
Sample coverage
4
API ready
Yes

Overview

The Shamir Secret Sharing tool allows you to securely split a sensitive secret—such as a password, API key, or recovery seed phrase—into multiple shares using a k-of-n threshold scheme. Reconstructing the original secret requires a minimum threshold of shares, ensuring that no single share holder can access the secret alone, all processed entirely in your browser using secure local cryptography.

When to use

  • When you need to distribute a master password or recovery phrase among multiple trusted parties to prevent a single point of failure.
  • When setting up a social recovery mechanism for self-custodied cryptocurrency wallets.
  • When implementing a key escrow system where a threshold of administrators must cooperate to decrypt sensitive data.

How it works

  1. 1In Split mode, the tool takes your secret and generates a random polynomial of degree k-1 over GF(256) using cryptographically secure random bytes from the OS for the coefficients.
  2. 2The secret is encoded as the constant term of the polynomial, and the tool evaluates this polynomial at different points to produce n distinct shares formatted as base64url strings prefixed with 'sss:'.
  3. 3In Combine mode, you input at least k of these shares, and the tool performs Lagrange interpolation at x=0 to reconstruct the original secret.

Use cases

  • Splitting a corporate master password among five board members, requiring any three to authorize recovery.
  • Securing a cryptocurrency seed phrase by distributing shares across different physical locations or trusted friends.
  • Creating a backup for a critical database decryption key that requires multi-administrator consensus to activate.

Examples

1. Splitting a Master Password for Corporate Escrow

Security Administrator

Background

A company needs to store a master password for their primary database backup, but wants to ensure no single employee can access it unilaterally.

Problem

Distribute the password to five executives such that any three must cooperate to retrieve it.

How to use

Select 'Split' mode, enter the master password in the secret field, set the threshold (k) to 3, set total shares (n) to 5, and click generate.

Mode: split, Threshold: 3, Shares: 5

Outcome

Five unique shares starting with 'sss:' are generated. Any three of these shares can be combined later to recover the master password.

2. Reconstructing a Cryptocurrency Seed Phrase

Crypto Investor

Background

An investor previously split their 12-word recovery seed phrase into a 2-of-3 scheme and now needs to recover the wallet after a hardware failure.

Problem

Rebuild the original seed phrase using two of the distributed shares.

How to use

Select 'Combine' mode, paste two of the 'sss:' shares into the input area (one per line), and click combine.

FAQ

Does this tool send my secret to a server?

No. All cryptographic operations are performed locally in your browser using in-process JavaScript and the OS cryptographically secure pseudorandom number generator.

What happens if I lose some of the shares?

As long as you have at least the threshold number (k) of shares, you can fully recover the secret. If you have fewer than k shares, the secret cannot be recovered.

Can I detect if a share has been tampered with?

No. Shamir's scheme provides confidentiality but not integrity. A modified share will result in an incorrect reconstructed secret without throwing an error.

What is the maximum number of shares I can generate?

The tool operates over GF(256), which limits the maximum number of shares (n) to 255, and the threshold (k) must be at least 2.

What format do the generated shares use?

Each share is output as a text string starting with the prefix 'sss:' followed by the base64url-encoded coordinates.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Python

Web Image Processing Python Samples

Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion

Java

Android Image Processing Java Samples

Android Java image processing examples including reading/saving images, scaling, and format conversion

Kotlin

Android Image Processing Kotlin Samples

Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

Rust

Web Image Processing Rust Samples

Web Rust image processing examples including image read/save, scaling, and format conversion

Security

ML-KEM / Kyber Keypair & Encapsulation Tester

Generate ML-KEM-512/768/1024 (FIPS 203 / CRYSTALS-Kyber) keypairs, encapsulate a random shared secret against the public key, decapsulate it with the private key, and verify both sides match — with the exact wire sizes of all three parameter sets checked live against the standard.

Security

Security Headers Checker

Audit HTTP response headers for security compliance — parses the raw headers you paste (no network) and grades them against the OWASP secure-header set with value-level checks: HSTS max-age, CSP unsafe-inline/eval, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, COOP/COEP/CORP and more. Outputs a letter grade (A+ to F) plus per-header findings with copy-ready fix recommendations.

Security

Env File Secret Rotation Planner

Paste a .env file and get a staged secret-rotation plan. Detects database URLs, API keys, auth tokens, private keys, cloud credentials, payment keys and encryption secrets, scores each by exposure and age, and schedules them across a 4-week rotation timeline with a dual-key checklist and a generated .env.example. Optional last-rotated dates and a configurable cadence (30/90/180/365 days) drive compliance scoring.

Security

RSA Key Pair Generator

Generate an RSA key pair (2048/3072/4096-bit) as PEM-encoded public and private keys. Optionally encrypt the private key with a passphrase. PKCS#8 (recommended) or PKCS#1 private key format. Everything runs locally.

Mode: combine, Shares: 2

Outcome

The original 12-word recovery seed phrase is successfully reconstructed and displayed in the recovery panel.