Let's say I have a password:
AAABBBCCCDDD I could easily give person A the first part (AAA), person B the second part and so on.
But is there an option any two of the four people can decrypt/form the password from a part of text I give them? Obviously, from only the parts AAA and DDD the password can not be formed.
How? :)
This is known as "Secret sharing", "Key splitting" or "Key distribution", and can be done with some public key cryptography algorithms.
Here are a few links on the subject:
An easy way to do 2 out of 4 would be to split the key into 4 pieces, and distribute 3 pieces to everyone. The distributed parts would know which parts they have.
Here's a sample distribution:
As you can see, no matter which two people you pick, they will always have all four pieces. There are more mathematical methods the more people and combinations you get to, but it is certainly doable.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With