Skip to content

Conversation

karta9821
Copy link

@karta9821 karta9821 commented Apr 7, 2025

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

@karta9821 karta9821 force-pushed the feature/replace-passlib-with-bcrypt branch 2 times, most recently from 4f520da to fb5e042 Compare April 7, 2025 20:00
@alejsdev alejsdev added the feature New feature or request label Apr 14, 2025
@alejsdev alejsdev changed the title feat: Use bcrypt directly instead of passlib ✨ Use bcrypt directly instead of passlib Apr 14, 2025
@karta9821 karta9821 force-pushed the feature/replace-passlib-with-bcrypt branch from fb5e042 to 80c7687 Compare April 27, 2025 14:08
@YuriiMotov YuriiMotov added refactor and removed feature New feature or request labels Sep 3, 2025
@YuriiMotov YuriiMotov changed the title ✨ Use bcrypt directly instead of passlib ♻️ Use bcrypt directly instead of passlib Sep 3, 2025
Copy link
Contributor

@YuriiMotov YuriiMotov left a 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-passlib dev dependency.
  • Before merging, I would regenerate and commit uv.lock

@github-actions github-actions bot added the conflicts Automatically generated when a PR has a merge conflict label Sep 7, 2025
Copy link
Contributor

github-actions bot commented Sep 7, 2025

This pull request has a merge conflict that needs to be resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conflicts Automatically generated when a PR has a merge conflict refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants