Description
shamir-secret-sharing is a TypeScript library that implements Shamir's Secret Sharing, which splits a secret into shares and later combines enough of them to rebuild it. It works on Uint8Array values over GF(2^8), has no dependencies, and runs in both Node and browser environments. The implementation is inspired by HashiCorp Vault. The library exposes two functions, split and combine. The project says it was independently audited by Cure53 and by Zellic, and it links both audit reports. The README also lists considerations for safe use. JavaScript cannot guarantee constant-time behavior, so side-channel resistance is a goal rather than a promise. The library does not verify reconstructed secrets, so you must check the integrity of the result yourself. Secrets should be uniformly random, and if they are not, you should encrypt the value and split the key. Inputs should be validated before use. The project is not open to external contributions, so bug reports go in issues.…
Highlights
- Split a secret into shares and combine them to rebuild it
- Zero-dependency TypeScript for Node and browsers
- Independently audited by Cure53 and Zellic
- Works on Uint8Array values over GF(2^8)
- Documented security considerations for safe use
Ratings & Reviews
No ratings yet
Be the first to rate Shamir Secret Sharing.
People also visit
Shamir Secret Sharing FAQ
What is shamir-secret-sharing?
A TypeScript library for Shamir's Secret Sharing. It splits a secret into shares and combines them later to rebuild the secret.
Has it been audited?
Yes. The README says it was independently audited by Cure53 and by Zellic, and links both audit reports.
Does it check that the rebuilt secret is correct?
No. The README says the library does not verify the result of share reconstruction, so you must verify the integrity of the secret yourself.
Can I contribute?
The project is not currently open to external contributions. You can submit an issue with as much detail as possible.
What are the best Shamir Secret Sharing alternatives?
Popular alternatives to Shamir Secret Sharing include Crypt.fyi, scrt and Meshbird. See all Shamir Secret Sharing alternatives

