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

Function hmacSha256Hex

wxapp/wps.js:70–72  ·  view source on GitHub ↗
(text, key)

Source from the content-addressed store, hash-verified

68}
69
70function hmacSha256Hex(text, key) {
71 return crypto.createHmac("sha256", key).update(String(text)).digest("hex");
72}
73
74function base64url(input) {
75 return Buffer.from(input).toString("base64url");

Callers 1

makeSignatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected