Skip to content

Commit 6e69c6e

Browse files
committed
use argon for hashing
1 parent 1b032ca commit 6e69c6e

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

arklet/settings.py

+7
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,13 @@
136136
},
137137
]
138138

139+
PASSWORD_HASHERS = [
140+
"django.contrib.auth.hashers.Argon2PasswordHasher",
141+
"django.contrib.auth.hashers.PBKDF2PasswordHasher",
142+
"django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher",
143+
"django.contrib.auth.hashers.BCryptSHA256PasswordHasher",
144+
"django.contrib.auth.hashers.ScryptPasswordHasher",
145+
]
139146

140147
# Internationalization
141148
# https://docs.djangoproject.com/en/3.2/topics/i18n/

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ tomli==1.2.2
2121
typing-extensions==3.10.0.2
2222
urllib3==1.26.7
2323
django-environ==0.8.0
24+
argon2-cffi==21.3.0
25+
argon2-cffi-bindings==21.2.0

0 commit comments

Comments
 (0)