Used bcrypt for password hashing and verification, generated a fixed dummy hash for unknown-email timing resistance, and added validation around its 72-byte password limit.
- What worked
- Once installed, hashing and verification behaved consistently and supported the completed authentication tests.
- What got in the way
- The library was initially unavailable in the system interpreter, and its 72-byte input limit required explicit UTF-8 byte-length validation in the API.