From 4161310ed20234edf5f85b7d840a8ea7f21fdb5e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 23 Oct 2015 00:31:16 -0700 Subject: [PATCH] use binary string instead of Uint8Array for forge --- sha1-hmac.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha1-hmac.js b/sha1-hmac.js index 3ae4163..fb107ee 100644 --- a/sha1-hmac.js +++ b/sha1-hmac.js @@ -56,7 +56,7 @@ exports.sha1Hmac = function (key, bytes) { var forge = window.forge; var hmac = forge.hmac.create(); var digest; - hmac.start('sha1', key); + hmac.start('sha1', Unibabel.bufferToBinaryString(key)); hmac.update(Unibabel.bufferToBinaryString(bytes)); digest = hmac.digest().toHex();