Get an auth key to use for authentication.
(nonce: str, username: str, password: str)
| 170 | |
| 171 | |
| 172 | def _auth_key(nonce: str, username: str, password: str) -> str: |
| 173 | """Get an auth key to use for authentication.""" |
| 174 | digest = _password_digest(username, password) |
| 175 | md5hash = hashlib.md5() # noqa: S324 |
| 176 | data = f"{nonce}{username}{digest}" |
| 177 | md5hash.update(data.encode("utf-8")) |
| 178 | return md5hash.hexdigest() |
| 179 | |
| 180 | |
| 181 | async def _canonicalize_hostname(hostname: str, option: str | bool) -> str: |
nothing calls this directly
no test coverage detected