Login
You're viewing the code4lib.social public feed.
  • Nov 5, 2026, 6:27 PM

    Realizing that I know what a cryptographic salt is- "it prevents Rainbow Tables from working"- but don't actually understand _why_ it works.

    💬 1🔄 0⭐ 1

Replies

  • Nov 5, 2026, 6:28 PM

    At one point in the past- a decade plus, ago- I DID understand how Rainbow Tables worked. But I've since forgotten, and recent attempts at me trying to understand them have failed. Somehow I got stupider in the past 10 years.

    💬 0🔄 0⭐ 0
  • Nov 6, 2026, 12:47 AM

    @cr1901 without salt (random characters stored with password hash), there’s a 1:1 relationship between passwords and password hashes. Which makes precomputation attacks much easier. (Rainbow Tables are a space efficient type of precomputed tables.)

    With salt, you need one precomputed table per salt value (as the salt is mixed into the hash calculation).

    With enough salt, the number of precomputed tables is impractically large. (Even for Rainbow Tables.)

    💬 0🔄 0⭐ 0