MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / sign256

Function sign256

wxapp/hezj.js:44–47  ·  view source on GitHub ↗
(path, body, timestamp)

Source from the content-addressed store, hash-verified

42});
43
44function sign256(path, body, timestamp) {
45 const bodyStr = body ? JSON.stringify(body) : "";
46 return crypto.createHash("sha256").update(path + bodyStr + HA_APP_ID + HA_APP_KEY + timestamp).digest("hex");
47}
48
49function maskToken(token = "") {
50 if (!token) return "";

Callers 1

requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected