Chapter 9: add hasing-with-bcrypt samples
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
const password = process.argv[2];
|
||||
const bcrypt = require("bcrypt");
|
||||
const saltRounds = 10;
|
||||
|
||||
bcrypt.hash(password, saltRounds, (err, hash) => {
|
||||
console.log(hash);
|
||||
});
|
||||
Reference in New Issue
Block a user