Skip to main content

common.tests.hashers

DangerousMockHasher

class DangerousMockHasher(hashers.BasePasswordHasher)

This is a mock hasher, meant to be used in pytest environment only! Never use this pseudo hasher in production environment.

It doesn't perform any hashing so that creating fixtures is much quicker.

harden_runtime

def harden_runtime(password, encoded)

Defined as a no-op to silence the super() class warning