Clear text credentials High

Credentials that are stored in clear text in memory or written to log files can be intercepted by a malicious actor.

Detector ID
python/clear-text-credentials@v1.0
Category

Noncompliant example

1PASSWORD_HASHERS = [
2        # Noncompliant: uses non-standard or insecure password hashers.
3        "django.contrib.auth.hashers.MD5PasswordHasher",
4        "django.contrib.auth.hashers.PBKDF2PasswordHasher"
5    ]

Compliant example

1PASSWORD_HASHERS = [
2    # Compliant: uses standard and secure hashers.
3    'django.contrib.auth.hashers.BCryptSHA256PasswordHasher',
4    'django.contrib.auth.hashers.BCryptPasswordHasher',
5    'django.contrib.auth.hashers.PBKDF2PasswordHasher',
6    'django.contrib.auth.hashers.PBKDF2SHA1PasswordHasher',
7    'django.contrib.auth.hashers.Argon2PasswordHasher'
8]