Skip to content

Implementation of Shamir's Secret Sharing in node.js.

Notifications You must be signed in to change notification settings

maxineauma/secret-sharing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to Share a Secret

From Adi Shamir's How to Share a Secret, referenced from his paper and the Wikipedia entry, using finite field arithmetic.

Usage Guide

  1. No npm install necessary! All in native JS!
  2. Modify test.js values S, N, and P (if you dare) with desired values.
  3. Run node test.js, and it will reconstruct your secret!
  4. Most importantly: have fun. I sure did!

Limitations

  1. N (or K) has an unspecified limit. Anything above will be insufficient to return the secret.