“bcryptjs.hash” Réponses codées

Bcrypt Nodejs Hash Mot de passe

 bcrypt.genSalt(saltRounds, (err, salt) => {
    bcrypt.hash(yourPassword, salt, (err, hash) => {
       console.log(salt + hash)
    });
});
Uptight Unicorn

bcryptjs.hash

// This is probably the easiest way to use bcryptjs in nodejs
const bcrypt = require("bcryptjs")

const password = "123456"

bcrypt.hash(password, 10)
	.then('''do something''')
	.catch(err => console.log(err))
Code Sir

bcryptjs

npm i bcryptjs

# yarn
yarn add bcryptjs
Salo Hopeless

bcryptjs

npm i bcryptjs
Sabbir Hossain

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code