MCPcopy
hub / github.com/django/django / _get_session_auth_hash

Method _get_session_auth_hash

django/contrib/auth/base_user.py:142–149  ·  view source on GitHub ↗
(self, secret=None)

Source from the content-addressed store, hash-verified

140 yield self._get_session_auth_hash(secret=fallback_secret)
141
142 def _get_session_auth_hash(self, secret=None):
143 key_salt = "django.contrib.auth.models.AbstractBaseUser.get_session_auth_hash"
144 return salted_hmac(
145 key_salt,
146 self.password,
147 secret=secret,
148 algorithm="sha256",
149 ).hexdigest()
150
151 @classmethod
152 def get_email_field_name(cls):

Callers 2

get_session_auth_hashMethod · 0.95

Calls 1

salted_hmacFunction · 0.90

Tested by

no test coverage detected