Switch the preferred password hash from PBKDF2 to the newer and more secure Argon2
This commit is contained in:
parent
cbc24d4774
commit
45daf529f8
3 changed files with 106 additions and 29 deletions
|
@ -157,6 +157,16 @@ DATABASES = {
|
|||
|
||||
AUTH_USER_MODEL = 'users.User'
|
||||
|
||||
# Password hashers
|
||||
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
|
||||
PASSWORD_HASHERS = [
|
||||
'django.contrib.auth.hashers.Argon2PasswordHasher',
|
||||
'django.contrib.auth.hashers.PBKDF2PasswordHasher',
|
||||
'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
|
||||
'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
|
||||
'django.contrib.auth.hashers.BCryptPasswordHasher',
|
||||
]
|
||||
|
||||
# Password validation
|
||||
# https://docs.djangoproject.com/en/1.11/ref/settings/#auth-password-validators
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue