Link to the documentation section concerned:
https://docs.djangoproject.com/en/4.1/topics/auth/passwords/#using-argon2
-with-django
Currently, the fact that Argon2id is indeed the default in Django (when
using Argon2), is to my knowledge only mentioned here:
https://docs.djangoproject.com/en/4.1/releases/3.2/
--
Ticket URL: <https://code.djangoproject.com/ticket/34017>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
Agreed. Would you like to prepare a patch? It should be enough to mention
`Argon2id` in topics, e.g.
{{{#!diff
diff --git a/docs/topics/auth/passwords.txt
b/docs/topics/auth/passwords.txt
index 25c98bf786..43607d6478 100644
--- a/docs/topics/auth/passwords.txt
+++ b/docs/topics/auth/passwords.txt
@@ -83,7 +83,8 @@ 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
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34017#comment:1>
* easy: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/34017#comment:2>
Comment (by David Schultz):
Currently I can't familiarize myself with the steps necessary to prepare
such a patch, so I would kindly ask you or someone else to do this. The
text which I would propose is this, building upon your suggestion:
{{{#!diff
diff --git a/docs/topics/auth/passwords.txt
b/docs/topics/auth/passwords.txt
index ???..??? ???
--- a/docs/topics/auth/passwords.txt
+++ b/docs/topics/auth/passwords.txt
@@ -83,93 +83,95 @@ 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:
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34017#comment:3>
* owner: nobody => Ritik Soni
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/34017#comment:4>
* has_patch: 0 => 1
* stage: Accepted => Ready for checkin
Comment:
[https://github.com/django/django/pull/16069 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/34017#comment:5>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"c11336cd990e155371a5185cf3bd6942cad8d9da" c11336cd]:
{{{
#!CommitTicketReference repository=""
revision="c11336cd990e155371a5185cf3bd6942cad8d9da"
Fixed #34017 -- Doc'd that Argon2id variant is used by
Argon2PasswordHasher.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34017#comment:6>
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"0859093f7c240b9677c62cac3682fd8c2643fa97" 0859093f]:
{{{
#!CommitTicketReference repository=""
revision="0859093f7c240b9677c62cac3682fd8c2643fa97"
[4.1.x] Fixed #34017 -- Doc'd that Argon2id variant is used by
Argon2PasswordHasher.
Backport of c11336cd990e155371a5185cf3bd6942cad8d9da from main
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/34017#comment:7>