summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-16 10:04:59 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-20 21:23:01 +0200
commit32b7ffc2bbfd1ae055bdbe287f8598de731adce1 (patch)
tree9c93cd5c485d4e6e3b19665c4eda0d23a017cea7 /django
parent8b6d0333cf5cfefd55e36969145507bb6acfca10 (diff)
Increased the default PBKDF2 iterations for Django 4.1.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/auth/hashers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/hashers.py b/django/contrib/auth/hashers.py
index cac11dfd4c..619f61ee3b 100644
--- a/django/contrib/auth/hashers.py
+++ b/django/contrib/auth/hashers.py
@@ -271,7 +271,7 @@ class PBKDF2PasswordHasher(BasePasswordHasher):
safely but you must rename the algorithm if you change SHA256.
"""
algorithm = "pbkdf2_sha256"
- iterations = 320000
+ iterations = 390000
digest = hashlib.sha256
def encode(self, password, salt, iterations=None):