encrypt password node code example
Example: expressjs create encrypted password
// To encrypt passwords use bcrypt
>> npm install bcrypt
const bcrypt = require('bcrypt');
bcrypt.hash('somePassowrd', 12).then(hash => {
console.log(hash);
});
// To encrypt passwords use bcrypt
>> npm install bcrypt
const bcrypt = require('bcrypt');
bcrypt.hash('somePassowrd', 12).then(hash => {
console.log(hash);
});