Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 878 Bytes

README.md

File metadata and controls

8 lines (5 loc) · 878 Bytes

secret_sharing

A Flask project which implements Shamir's secret sharing. It uses the properties of polynomials in order to encode a secret such that N people are given a 'share' of the answer, but at least K of them are required to decode the secret.

For example, you could share the code to a safe amongst 10 people, by giving each of them a 'share' such that any 6 people may bring their shares together and deduce the code, but it is impossible for 5 or fewer people to deduce any information about the code at all.

Some of the code for representing and interpolating polynomials is adapted from "A Programmers Introduction to Mathematics", by Jeremy Kun (https://github.com/pim-book/programmers-introduction-to-mathematics), which contains an exercise that inspired this repo.

The app is now deployed on heroku! It can be found at https://shamirs-secret.herokuapp.com/