-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
♻️ Use bcrypt directly instead of passlib #1539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
♻️ Use bcrypt directly instead of passlib #1539
Conversation
4f520da to
fb5e042
Compare
fb5e042 to
80c7687
Compare
YuriiMotov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@karta9821, thank you!
Seems that passlib is dead, and sooner or later we have to take this step.
Changes are not breaking - previously created users can login.
ToDo:
- We can also remove
types-passlibdev dependency. - Before merging, I would regenerate and commit
uv.lock
|
This pull request has a merge conflict that needs to be resolved. |
|
So, we should probably be consistent here and also use |
|
@YuriiMotov Compared to replacing passlib with pwdlib:
The bcrypt library is already a transitive dependency through passlib, so this is essentially just removing the passlib wrapper. |
The passlib library, previously used for password hashing in this project, is no longer actively maintained — its last update was over 4 years ago. This has been confirmed here: link to the issue.
To improve long-term security and maintainability, this PR replaces passlib with direct usage of the bcrypt library, which is actively maintained and widely used for secure password hashing.
Discussion: #1369