Add a special password hasher just for unit tests.

Review Request #14618 — Created Sept. 16, 2025 and updated

Information

Review Board
master

Reviewers

When running unit tests, we forced password hashing to use
SHA1PasswordHasher because the standard password hashers by design
take time to execute. Unfortunately, the SHA1 hasher is deprecated and
will be removed in Django 5.1. Because we don't actually care anything
about password security when running unit tests, this change adds a
special hasher just for the test suite that uses base64, which is even
faster than SHA1.

Ran unit tests.

Summary ID
Add a special password hasher just for unit tests.
When running unit tests, we forced password hashing to use `SHA1PasswordHasher` because the standard password hashers by design take time to execute. Unfortunately, the SHA1 hasher is deprecated and will be removed in Django 5.1. Because we don't actually care anything about password security when running unit tests, this change adds a special hasher just for the test suite that uses base64, which is even faster than SHA1. Testing Done: Ran unit tests.
mktursuyxszynktmtqnkwovyxysznuzr
Checks run (2 succeeded)
flake8 passed.
JSHint passed.