hashers.py 386 B

123456789
  1. from django.contrib.auth.hashers import PBKDF2PasswordHasher
  2. class SecretValidationHasher(PBKDF2PasswordHasher):
  3. """
  4. We're using Django's stock SHA256 hasher with a low iteration count to avoid introducing excessive delay when
  5. retrieving a large number of Secrets (the plaintext of each Secret is validated against its hash upon decryption).
  6. """
  7. iterations = 1000