MCPcopy Index your code
hub / github.com/cameri/nostream / hmacSha256

Function hmacSha256

src/utils/secret.ts:11–13  ·  view source on GitHub ↗
(secret: string | Buffer, data: string | Buffer)

Source from the content-addressed store, hash-verified

9}
10
11export function hmacSha256(secret: string | Buffer, data: string | Buffer): Buffer {
12 return createHmac('sha256', secret).update(data).digest()
13}

Callers 10

makeBodyFunction · 0.90
makeValidQueryFunction · 0.90
makeSignatureFunction · 0.90
handleRequestMethod · 0.90
handleRequestMethod · 0.90
handleRequestMethod · 0.90
createInvoiceMethod · 0.90
deriveFromSecretFunction · 0.85

Calls

no outgoing calls

Tested by 3

makeBodyFunction · 0.72
makeValidQueryFunction · 0.72
makeSignatureFunction · 0.72