Why should you never store user passwords with plain SHA-256, and why are bcrypt or Argon2 preferred instead?
What is a cryptographic salt, and what specific attack does a unique per-user salt defeat?
What the Rubric Checks
- • Explains SHA-256 is designed to be fast (vulnerable to GPU brute force)
- • Highlights adaptive work factor / memory hardness in bcrypt & Argon2
- • Correctly links unique per-user salts to defeating rainbow tables and identical-hash collisions
High-Scoring Answer Blueprint
SHA-256 is optimized for speed, allowing attackers with GPUs to test billions of guesses per second. Password hashers like bcrypt and Argon2 are intentionally slow with configurable cost factors (and memory-hardness for Argon2). Pairing them with a unique random salt per user prevents precomputed rainbow-table attacks.