Bird
0
0

What does bcrypt do when used for password hashing in FastAPI?

easy🧠 Conceptual Q1 of 15
FastAPI - Authentication and Security
What does bcrypt do when used for password hashing in FastAPI?
AIt securely hashes passwords to protect them from being easily read if leaked.
BIt encrypts passwords so they can be decrypted later.
CIt stores passwords in plain text for quick access.
DIt compresses passwords to save database space.
Step-by-Step Solution
Solution:
  1. Step 1: Understand bcrypt's purpose

    Bcrypt is designed to hash passwords securely, making it hard to reverse.
  2. Step 2: Compare options

    Only It securely hashes passwords to protect them from being easily read if leaked. correctly describes bcrypt's role as hashing, not encryption or compression.
  3. Final Answer:

    It securely hashes passwords to protect them from being easily read if leaked. -> Option A
  4. Quick Check:

    Password hashing = Secure hash [OK]
Quick Trick: Bcrypt hashes, it does not encrypt or compress passwords [OK]
Common Mistakes:
MISTAKES
  • Confusing hashing with encryption
  • Thinking bcrypt stores plain text
  • Assuming bcrypt compresses passwords

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More FastAPI Quizzes