1
0
mirror of https://github.com/django/django.git synced 2025-06-04 19:19:13 +00:00

[4.1.x] Fixed #34017 -- Doc'd that Argon2id variant is used by Argon2PasswordHasher.

Backport of c11336cd990e155371a5185cf3bd6942cad8d9da from main
This commit is contained in:
Ritik Soni 2022-09-17 13:19:09 +05:30 committed by Mariusz Felisiak
parent 160d0aacb8
commit 0859093f7c

View File

@ -83,13 +83,14 @@ Using Argon2 with Django
Argon2_ is the winner of the 2015 `Password Hashing Competition`_, a community
organized open competition to select a next generation hashing algorithm. It's
designed not to be easier to compute on custom hardware than it is to compute
on an ordinary CPU.
on an ordinary CPU. The default variant for the Argon2 password hasher is
Argon2id.
Argon2_ is not the default for Django because it requires a third-party
library. The Password Hashing Competition panel, however, recommends immediate
use of Argon2 rather than the other algorithms supported by Django.
To use Argon2 as your default storage algorithm, do the following:
To use Argon2id as your default storage algorithm, do the following:
#. Install the `argon2-cffi library`_. This can be done by running
``python -m pip install django[argon2]``, which is equivalent to