MCPcopy
hub / github.com/tornadoweb/tornado / _create_signature_v2

Function _create_signature_v2

tornado/web.py:3817–3820  ·  view source on GitHub ↗
(secret: Union[str, bytes], s: bytes)

Source from the content-addressed store, hash-verified

3815
3816
3817def _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
3823def is_absolute(path: str) -> bool:

Callers 2

create_signed_valueFunction · 0.85
_decode_signed_value_v2Function · 0.85

Calls 1

utf8Function · 0.90

Tested by

no test coverage detected