MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / sign_payload

Function sign_payload

api/core/signing.py:5–10  ·  view source on GitHub ↗
(payload: str, key: str)

Source from the content-addressed store, hash-verified

3
4
5def sign_payload(payload: str, key: str): # type: ignore[no-untyped-def]
6 # signPayload of frontend/web/components/TestWebHook on the frontend replicates this
7 # exact function, change the function there if this changes.
8 return hmac.new(
9 key=key.encode(), msg=payload.encode(), digestmod=hashlib.sha256
10 ).hexdigest()

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…