Split secrets into shares and reconstruct them using Shamir's scheme
Shamir's secret sharing scheme implementation
ssss-split
ssss-combine
$ echo 'my-secret-password' | ssss-split -t 3 -n 5
$ ssss-combine -t 3
$ cat secret.txt | ssss-split -t 2 -n 4