Shamir Secret Sharing Calculator
Enter a secret, share count, threshold and prime to generate shares.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
Introduced by cryptographer Adi Shamir in 1979, Shamir's Secret Sharing splits a secret into n shares so that any k of them reconstruct it exactly, while any k−1 or fewer reveal absolutely nothing about it (information-theoretic, not just computational, security). It works by picking a random polynomial of degree k−1 whose constant term is the secret, then handing each participant one point (x, f(x)) on that polynomial, evaluated over a finite field defined by a large prime modulus.
Recovery uses Lagrange interpolation: any k of the distributed points uniquely determine the degree-(k−1) polynomial, and evaluating it at x = 0 returns the original secret. This threshold scheme underlies real key-management systems — HashiCorp Vault's unseal keys, hardware security module backup procedures, and cryptocurrency wallet-recovery standards like SLIP-0039 all use it so that no single key holder, and no small subset of them, can reconstruct a master secret alone.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)