mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.10.x] Fixed #27013 -- Clarified commands to install argon2/bcrypt packages.
Backport of 9f27735612 from master
			
			
This commit is contained in:
		| @@ -90,8 +90,8 @@ use of Argon2 rather than the other algorithms supported by Django. | ||||
| To use Argon2 as your default storage algorithm, do the following: | ||||
|  | ||||
| 1. Install the `argon2-cffi library`_.  This can be done by running ``pip | ||||
|    install django[argon2]`` or by downloading the library and installing it | ||||
|    with ``python setup.py install``. | ||||
|    install django[argon2]``, which is equivalent to ``pip install argon2-cffi`` | ||||
|    (along with any version requirement from Django's ``setup.py``). | ||||
|  | ||||
| 2. Modify :setting:`PASSWORD_HASHERS` to list ``Argon2PasswordHasher`` first. | ||||
|    That is, in your settings file, you'd put:: | ||||
| @@ -120,8 +120,8 @@ use it Django supports bcrypt with minimal effort. | ||||
| To use Bcrypt as your default storage algorithm, do the following: | ||||
|  | ||||
| 1. Install the `bcrypt library`_. This can be done by running ``pip install | ||||
|    django[bcrypt]``, or by downloading the library and installing it with | ||||
|    ``python setup.py install``. | ||||
|    django[bcrypt]``, which is equivalent to  ``pip install bcrypt`` (along with | ||||
|    any version requirement from Django's ``setup.py``). | ||||
|  | ||||
| 2. Modify :setting:`PASSWORD_HASHERS` to list ``BCryptSHA256PasswordHasher`` | ||||
|    first. That is, in your settings file, you'd put:: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user