MCPcopy Index your code
hub / github.com/nodejs/node / hmacDigest

Function hmacDigest

test/parallel/test-crypto-keyobject-clone-transfer.js:81–83  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

79}
80
81function hmacDigest(key) {
82 return createHmac('sha256', key).update('payload').digest('hex');
83}
84
85(async () => {
86 const secret = createSecretKey(Buffer.alloc(16));

Calls 2

createHmacFunction · 0.85
updateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…