What is password hashing?

Updated May 6, 2026

Short answer

Password hashing converts passwords into irreversible fixed-length strings.

Deep explanation

Algorithms like bcrypt or Argon2 protect passwords by making reversal computationally infeasible.

Real-world example

User passwords stored securely in databases.

Common mistakes

  • Using plain MD5 or SHA1 for passwords.

Follow-up questions

  • What is salting?
  • Why is bcrypt preferred?

More Web Security interview questions

View all →