Sharing secrets and distributing passwords: Shamir's Algorithm
datagenetics.comThis is one of the best (simple) explanations of Shamir's Secret Sharing Scheme [0] which has a solid working implementation [1]
[0]: https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing