Shamir's Secret Sharing Scheme https://github.com/grempe/secrets.js

Used to secure a secret in a distributed way

SSSS is perfectly secure in that knowing any less than the required number of shares gives no information about the original secret (besides its length)

Example use case: Provide your family access to your Bitcoins after you die

For serious use: download this then run it on an offline device