Q39: Compare modern secure password hashing algorithms: Argon2, bcrypt, and PBKDF2.
Plaintext passwords must never be stored or hashed using fast cryptographic algorithms like MD5 or SHA-256. Secure password storage requires slow, memory-hard key derivation functions:
- Argon2 (Argon2id): Modern Gold Standard (Winner of Password Hashing Competition). Memory-hard and time-hard algorithm resistant to GPU and ASIC brute-force attacks.
- bcrypt: Widespread legacy standard. Uses adaptive work factors (cost parameter), but limited to 72-byte maximum password lengths.
- PBKDF2: NIST-approved standard using iterated HMAC hashes, but vulnerable to hardware acceleration via dedicated GPUs compared to Argon2.
Key Takeaways
Use Argon2id for new greenfield system password storage implementations.
Never use general hash algorithms (SHA256, MD5) for password storage.