Unofficial Hacker News client - receive Push Notifications on replies.

Cryptanalytic result from Anthropic: paper title leaked (opens external site)

225 points by aklein 4 hours ago | twitter.com | 338 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (13)

  1. Great teachable example of why salting is useful!
    Replies (2)
    1. 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 (6)
      1. 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.
        Replies (1)
        1. > found a SHA3 collision

          Curious what are the chances to find a SHA3 collision with a plausible sounding scientific paper title.

          Replies (1)
          1. I did some back-of-the-envelope calculations in a sibling comment, and I think it's really implausible to find a collision, or crack the hash in the first place. Like, many GPU years worth of compute.
            Replies (1)
            1. "Many GPU years" is a small amount of compute of the information is valuable.
      2. 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.
      3. 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.

      4. 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.
        Replies (1)
        1. Right. So for SHA256 I would be trusted, but for SHA1 I might have just reversed it after it was published?
      5. Like this:

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

      6. Create the salted title:

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

          SHA3(salted_paper_title)
          SHA3(salt)
    2. How does salt work if you want to provide such a certificate? Don't you need to provide the clear text salt together with it in any case? (Though I understand you could keep the salt hidden and reveal it only afterwards if it's short enough, but doesn't feel as good a certificate).

      EDIT: lol, it's like throwing a chunk of meat to the piranhas