Open nisargap opened 8 years ago
bcrypt.genSalt(function(err, salt){ console.log(salt); }); According to the README the rounds parameter is optional but when I run this it says that no callback was provided.
bcrypt.genSalt(function(err, salt){ console.log(salt); });
Actually, it's not optional parameter If you don't want to specify count of rounds just call bcrypt.genSalt(null, callback)
bcrypt.genSalt(null, callback)
bcrypt.genSalt(function(err, salt){ console.log(salt); });
According to the README the rounds parameter is optional but when I run this it says that no callback was provided.