(secret: Union[str, bytes], s: bytes)
| 3815 | |
| 3816 | |
| 3817 | def _create_signature_v2(secret: Union[str, bytes], s: bytes) -> bytes: |
| 3818 | hash = hmac.new(utf8(secret), digestmod=hashlib.sha256) |
| 3819 | hash.update(utf8(s)) |
| 3820 | return utf8(hash.hexdigest()) |
| 3821 | |
| 3822 | |
| 3823 | def is_absolute(path: str) -> bool: |
no test coverage detected