Problem Statement
Why do we add a unique salt to each stored password hash?
Explanation
A per user salt makes identical passwords hash to different values. That kills precomputed tables and cross user comparisons. It does not replace a slow hash. You still need bcrypt, scrypt, or Argon two i d.
Code Solution
SolutionRead Only
store: user, salt, argon2id_hash(salt + password)
