logoalt Hacker News

alkonaut • yesterday at 4:20 PM • 6 replies • view on HN

How would you use a salt in this scenario? "The title of the article plus the word 'toaster' has the SHA256 [hash]"? Doesn't that reverse just as easily? You need a public salt if you want to convince someone that you knew early?


Replies

haakon • yesterday at 4:24 PM

You need to withhold the salt until the paper is published and the title becomes known. Then you publish the salt, and people can concatenate it to the title and verify the hash.

There's no practical way for you to construct a salt after the fact such that the title and the salt computes to the hash you already published, unless you also knew the title at the time.

pinum • yesterday at 4:23 PM

You would need to release the salt later. It would still be convincing, as the only other explanation would be that you found a SHA3 collision.

➕ show 1 reply
ahartmetz • yesterday at 4:30 PM

I guess you'd publish the salt after the public release of the paper. Finding a hash collision to "retrofit" the salted hash should not be feasible with a non-broken cryptographic hash function.

➕ show 1 reply
bscphil • yesterday at 4:24 PM

Pick a random uint32. Say "the paper title + a random number has the SHA256 [hash]". When the paper title is revealed, publish your random number. That proves you knew the paper title in advance.

iosjunkie • yesterday at 6:15 PM

Create the salted title:

  salt = "123456789"
  salted_paper_title = "The paper's title" + salt
Publicly release:

  SHA3(salted_paper_title)
  SHA3(salt)
Taek • yesterday at 4:50 PM

Like this:

`d9a305c5156494da | Quasi-polynomial quantum algorithms for integral lattices and module lattices of small rank over power-of-two cyclotomic rings`