Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. bcrypt.genSalt(10, function(err, salt) {
  2. bcrypt.hash("Password", salt, function(err, hash) {
  3. console.log("Le hash", hash);
  4. bcrypt.compare("NotgoodPass", hash, function(err, res) {
  5. console.log(res);
  6. });
  7. bcrypt.compare("Password", hash, function(err, res) {
  8. console.log(res);
  9. });
  10. });
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement