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:
Step 1: Understand bcrypt's purpose
Bcrypt is designed to hash passwords securely, making it hard to reverse.
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.
Final Answer:
It securely hashes passwords to protect them from being easily read if leaked. -> Option A
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
Master "Authentication and Security" in FastAPI
9 interactive learning modes - each teaches the same concept differently