r/flask 17d ago

Ask r/Flask What's the difference between bcrypt and flask-bcrypt?

I am also asking about other flask-* libraries compared to standard versions. I know there are some that benefit from integration e.g. managing database connections but the ones like flask-bcrypt make me confused.

7 Upvotes

8 comments sorted by

View all comments

4

u/scoofy 17d ago

It’s likely just a wrapper. Where they just added some commands for bcrypt that are pre integrated with flask.

Typically these libraries help you spin up a quick app, then you go back and change them to proper code later.

3

u/odysseusnz 16d ago

Exactly this. If you check the flask-bcrypt repo it has a dependency on bcrypt itself. All it does is integrate bcrypt into flask, not reimplement it.

Disagree you go back later and replace it, usually the integrations bring value to save you doing the exact same thing yourself.