MCPcopy Create free account
hub / github.com/EasyIME/PIME / _create_signature_v2

Function _create_signature_v2

python/python3/tornado/web.py:3616–3619  ·  view source on GitHub ↗
(secret: Union[str, bytes], s: bytes)

Source from the content-addressed store, hash-verified

3614
3615
3616def _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
3622def is_absolute(path: str) -> bool:

Callers 2

create_signed_valueFunction · 0.85
_decode_signed_value_v2Function · 0.85

Calls 2

utf8Function · 0.90
updateMethod · 0.45

Tested by

no test coverage detected