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

Function _create_signature_v1

tornado/web.py:3810–3814  ·  view source on GitHub ↗
(secret: Union[str, bytes], *parts: Union[str, bytes])

Source from the content-addressed store, hash-verified

3808
3809
3810def _create_signature_v1(secret: Union[str, bytes], *parts: Union[str, bytes]) -> bytes:
3811 hash = hmac.new(utf8(secret), digestmod=hashlib.sha1)
3812 for part in parts:
3813 hash.update(utf8(part))
3814 return utf8(hash.hexdigest())
3815
3816
3817def _create_signature_v2(secret: Union[str, bytes], s: bytes) -> bytes:

Callers 3

create_signed_valueFunction · 0.85
_decode_signed_value_v1Function · 0.85

Calls 1

utf8Function · 0.90