DEV Community


Posted on


Better Django Hasher

Django support multiple password hash algorithm, however two hash that it support but not come out of the box are Argon2 and Bcrypt. This post will show how we can make for a better Django Password hasher our project.

Installing Argon2 Library

We can install the Argon2 library as follow

pipenv install django[argon2]
pipenv lock -r > requirements.txt
Enter fullscreen mode Exit fullscreen mode

Update Settings

in your just add the following line

Enter fullscreen mode Exit fullscreen mode

That's it and now your password is being hash with a much better password hasher.


With just 2 simple steps, your user password is being hash with a better password hasher. Why not just implement this in your project, as you got nothing to loose and so many to gain.

Top comments (0)

An Animated Guide to Node.js Event Loop

Node.js doesn’t stop from running other operations because of Libuv, a C++ library responsible for the event loop and asynchronously handling tasks such as network requests, DNS resolution, file system operations, data encryption, etc.

What happens under the hood when Node.js works on tasks such as database queries? We will explore it by following this piece of code step by step.