Unofficial Hacker News client - receive Push Notifications on replies.

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

550 points by aklein 20 hours ago | twitter.com | 757 comments on HN | Vote on HN (opens Hacker News)

View full thread · View on Hacker News

Comment thread (4)

  1. Secondary takeaway is to always salt before you hash!
    Replies (1)
    1. I don't think that matters here. It's not like Claude looked up the hash of this long, complicated title in a pre-computed table.

      The claim is that the LLM somehow brute-forced this digest individually, which is all that a salt forces the adversary to do.

      Replies (1)
      1. I guess they meant appending a secret nonce to the plaintext before hashing.

        Isn't that what they call a pepper?

        Replies (1)
        1. A salt is a once-per-item value, whereas a pepper is a once-per-deployment/system value. So, if you have an authentication DB and you're using a hardware security module to hash a secret value along with each password, and store that hash in your DB, the secret value stored in your HSM is your pepper. You could also have per-entry salt values hashed in (salt and pepper aren't mutually exclusive). Of course, if you're really doing such a thing, use a memory-hard function designed for passwords.