Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 648 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 648 Bytes

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.