Menu

Solved: AttributeError: module 'bcrypt' has no attribute '__about__' in Python 3.12 & 3.13 (FastAPI JWT Auth)

DEV Community: fastapiΒ·walid yahiaouiΒ·about 1 month ago
#o34JGPE0
#devtofastapi#devto#dev#fastapi#bcrypt
Reading 0:00
15s threshold

πŸ›‘οΈ Fixing ValueError: password cannot be longer than 72 bytes in Python 3.12 / 3.13 ( passlib + bcrypt ) When deploying FastAPI authentication routes using passlib[bcrypt] on Python 3.12 or Python 3.13 , newer versions of bcrypt ( >= 4.1.0 ) raise:…

Anonymous readers can preview up to 1024 characters here. Log in to unlock the full article once ingest succeeds.