Sharing Secrets
You can share parts of a secret with multiple people, so only some of them need to agree to see the secret.
Install ssss
, then decide on the total number of secrets (N
), and the threshold of people who must share their shard of the secret in order to reveal the secret.
1N=5
2T=3
3FILE=secret.txt
4fortune | ssss-split -t $T -n $N > $FILE
Each shard is a line inside secret.txt.
Check it's working:
1head -n $T $FILE | ssss-combine -t $T
2tail -n $T $FILE | ssss-combine -t $T