Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bcrypt.genSalt(10, function(err, salt) {
- bcrypt.hash("Password", salt, function(err, hash) {
- console.log("Le hash", hash);
- bcrypt.compare("NotgoodPass", hash, function(err, res) {
- console.log(res);
- });
- bcrypt.compare("Password", hash, function(err, res) {
- console.log(res);
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement