(secret: Union[str, bytes], s: bytes)
| 3614 | |
| 3615 | |
| 3616 | def _create_signature_v2(secret: Union[str, bytes], s: bytes) -> bytes: |
| 3617 | hash = hmac.new(utf8(secret), digestmod=hashlib.sha256) |
| 3618 | hash.update(utf8(s)) |
| 3619 | return utf8(hash.hexdigest()) |
| 3620 | |
| 3621 | |
| 3622 | def is_absolute(path: str) -> bool: |
no test coverage detected