How to use the stanza-shims.createHmac function in stanza-shims

To help you get started, we’ve selected a few stanza-shims examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github legastero / stanza / src / lib / sasl / index.ts View on Github external
export function HMAC(key: Buffer, msg: Buffer, alg: string): Buffer {
    return Hashes.createHmac(alg, key)
        .update(msg)
        .digest() as Buffer;
}

stanza-shims

Runtime shims used by StanzaJS for node, browsers, and React Native

MIT
Latest version published 3 years ago

Package Health Score

42 / 100
Full package analysis