logoalt Hacker News

How Shamir's Secret Sharing Works

111 pointsby subractyesterday at 10:37 PM9 commentsview on HN

Comments

_jackdk_today at 1:33 AM

This is such a cool technique, and you could even teach it in secondary schools as a neat thing computer scientists can do with polynomials.

3eb7988a1663today at 3:57 AM

Do the people who hold the root DNS keys do anything like this? Or is that too much complexity when a safe in a secure room works as an effective backup?

Cider9986today at 1:09 AM

Here is Ente's implementation: (https://2of3.ente.com/)

show 1 reply
teravortoday at 12:58 AM

if the secret is large usually it's encrypted and the payload is distributed along with the shares of the key.

but you can also just use Reed-Solomon and split the payload, the difference with Shamir is that you lose information-theoretic security (you lose it the moment you use encryption anyway) and the payload also needs to undergo an all-or-nothing-transform (AONT).

AONT transforms the entire payload into an encrypted blob which also serves as its own key, a withheld piece is a de facto encryption key. this is required because Reed-Solomon can have pathological cases where pieces leak information.

show 1 reply
compsciphdtoday at 12:58 AM

before I learned of shamir secret sharing, I wondered why one couldn't do the same exact thing with a par2 like system (albiet with smaller pieces than a par2 system would traditionally have). i.e. you have X bits of data, you create Y*X/N sized recovery blocks (where Y > N). You hand each recovery block to individual users. and any N users can get together to recover the key and decrypt the contents.

show 2 replies
calvinmorrisontoday at 3:14 AM

something tangentially i am interested in is computing following the 'two person rule' for things like sudo. Yes I am logged into server X at terinal Y, and so is my co-worker and we both sign off on running command X

show 1 reply
han1today at 12:55 AM

[flagged]