1.0.3 • Published 2 years ago

devixel-hmacjs v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Devixel HMAC

Simple no-dependency HMAC Signature generator for browser

const hmacSecretKey = await devixelHmac.genHMACSecretKey('YOUR_SECRET')
const hmacSignature2 = await devixelHmac.genHMACSignature('YOUR_PAYLOAD_STRING', hmacSecretKey)

// or generate using array payload
const hmacSignature = await devixelHmac.genHMACSignature(['DATA','DATA','DATA'], hmacSecretKey, {
	encode: 'hex',
	separator: ':'
})