Passlib's CryptContext is imported from passlib.context and configured with schemes=["bcrypt"].
Step 2: Check syntax correctness
from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") correctly imports and creates pwd_context with bcrypt scheme and deprecated="auto".
Final Answer:
from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") -> Option A
Quick Check:
Correct import and setup = from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto") [OK]
Quick Trick:Use CryptContext from passlib.context with schemes=['bcrypt'] [OK]
Common Mistakes:
MISTAKES
Importing bcrypt directly instead of CryptContext
Using wrong module names like fastapi.security
Calling non-existent constructors
Master "Authentication and Security" in FastAPI
9 interactive learning modes - each teaches the same concept differently