CodeZettaInterview Hub

Node.js · Authentication · Junior · Best Practice

How do you store passwords correctly?

Short Interview Answer

Use strong KDFs (argon2id/bcrypt/scrypt) with per-password salts; never reversible encryption for passwords.

Detailed Explanation

Tune work factors. Migrate hashes on login when upgrading algorithms. Never log passwords.

Did you know this answer?