diff --git a/index.js b/index.js index 6eeb1e2..3cfb5f7 100644 --- a/index.js +++ b/index.js @@ -196,7 +196,7 @@ ExpressBrute._getKey = function (arr) { var key = ''; _(arr).each(function (part) { if (part) { - key += crypto.createHash('sha256').update(part).digest('base64'); + key += crypto.createHash('sha256').update(String(part)).digest('base64'); } }); return crypto.createHash('sha256').update(key).digest('base64');