Module lessons (2/4)
Password Storage: Fast Hashes vs PBKDF2 + Salt
Detect identical reused passwords in unsalted SHA-256 dumps, then implement PBKDF2 key stretching with random 16-byte salts.
What you'll learn in this lesson
- Demonstrate why fast unsalted hashes (
SHA-256(password)) expose password reuse and collapse under GPU brute-force attacks. - Identify shared passwords inside an unsalted hash leak without cracking a single preimage.
- Generate random 16-byte CSPRNG salts, derive PBKDF2-SHA256 keys via
crypto.subtle, and implement transparent work-factor upgrades on login.
Overview
Modern GPUs evaluate tens of billions of raw SHA-256 hashes per second, turning dictionary and cracked-list brute forcing into minutes. Worse still, storing unsalted digests ensures two users picking the same password share identical database hashes, exposing password reuse instantly in a SQL dump.
Compare naive password hashing against modern salted KDF engineering:
Sections covered in this lesson
- 11. Fast Hashes vs Salted Key Stretching
- 22. Interactive Explorer: Unsalted SHA-256 vs Salted PBKDF2
- 33. Progressive Labs: Warm-Up → Attack → Defend → Harden
- 44. Checkpoints & Code Review
Unlock "Password Storage: Fast Hashes vs PBKDF2 + Salt" and the full Application & Web Security curriculum
Detect identical reused passwords in unsalted SHA-256 dumps, then implement PBKDF2 key stretching with random 16-byte salts.
Unlock all 6 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.
- Instant access to all advanced modules in Application & Web Security plus 17 more courses
- Hands-on browser exercises with automated test suites and solutions
- 14-day money-back guarantee processed via Paddle.com
14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.