Skip to content

Commit

Permalink
ensafe the hash
Browse files Browse the repository at this point in the history
  • Loading branch information
blainsmith committed Sep 10, 2015
1 parent cc795df commit 9907eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tinypass.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function ensafe(data) {

// Hash helper
function hashHmacSha256(key, data) {
return crypto.createHmac('SHA256', key).update(data).digest('base64');
return ensafe(crypto.createHmac('SHA256', key).update(data).digest('base64'));
}

exports.createClient = function(options) {
Expand Down

0 comments on commit 9907eb2

Please sign in to comment.