(password: str, secret_key: str)
| 27 | |
| 28 | |
| 29 | def build_auth_token(password: str, secret_key: str) -> str: |
| 30 | secret = _safe_value(secret_key).encode("utf-8") |
| 31 | pwd = _safe_value(password).encode("utf-8") |
| 32 | return hmac.new(secret, pwd, hashlib.sha256).hexdigest() |
| 33 | |
| 34 | |
| 35 | def get_expected_auth_token() -> str: |
no test coverage detected