Question · NestJS course · Module 4: Authentication

Why hashing instead of encrypting passwords

Why should passwords be hashed instead of encrypted?

Answer options

  • Hashing is faster than encryption
  • A hash is shorter than an encrypted password
  • A hash is one-way - the original password cannot be recovered
  • Encryption requires more memory

You can check the correct answer by solving this task in the CodeWorlds game.