|
@@ -86,9 +86,10 @@ use of Argon2 rather than the other algorithms supported by Django.
|
|
|
|
|
|
To use Argon2 as your default storage algorithm, do the following:
|
|
|
|
|
|
-#. Install the `argon2-cffi library`_. This can be done by running ``pip
|
|
|
- install django[argon2]``, which is equivalent to ``pip install argon2-cffi``
|
|
|
- (along with any version requirement from Django's ``setup.py``).
|
|
|
+#. Install the `argon2-cffi library`_. This can be done by running
|
|
|
+ ``python -m pip install django[argon2]``, which is equivalent to
|
|
|
+ ``python -m pip install argon2-cffi`` (along with any version requirement
|
|
|
+ from Django's ``setup.py``).
|
|
|
|
|
|
#. Modify :setting:`PASSWORD_HASHERS` to list ``Argon2PasswordHasher`` first.
|
|
|
That is, in your settings file, you'd put::
|
|
@@ -115,9 +116,10 @@ use it Django supports bcrypt with minimal effort.
|
|
|
|
|
|
To use Bcrypt as your default storage algorithm, do the following:
|
|
|
|
|
|
-#. Install the `bcrypt library`_. This can be done by running ``pip install
|
|
|
- django[bcrypt]``, which is equivalent to ``pip install bcrypt`` (along with
|
|
|
- any version requirement from Django's ``setup.py``).
|
|
|
+#. Install the `bcrypt library`_. This can be done by running
|
|
|
+ ``python -m pip install django[bcrypt]``, which is equivalent to
|
|
|
+ ``python -m pip install bcrypt`` (along with any version requirement from
|
|
|
+ Django's ``setup.py``).
|
|
|
|
|
|
#. Modify :setting:`PASSWORD_HASHERS` to list ``BCryptSHA256PasswordHasher``
|
|
|
first. That is, in your settings file, you'd put::
|