Permalink
Browse files

Merge pull request #3 from NeonPaul/patch-1

Fix for strict mode
  • Loading branch information...
jhurliman committed Dec 17, 2016
2 parents c65743d + 9a1ea1b commit 4ea1ca515e39926640c9ac09bb5f63696b4ef3f8
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bcrypt.js
View
@@ -255,7 +255,7 @@ exports.BCrypt.prototype.hash = function(password, salt) {
var rounds = this.iterationCountLog2;
var rs = [];
- password += '\000';
+ password += minor;
for (var r = 0; r < password.length; r++)
passwordb.push(utils.getByte(password.charAt(r)));

0 comments on commit 4ea1ca5

Please sign in to comment.