“bcryptjs.hash” Kode Jawaban

BCRYPT NODEJS HASH Kata Sandi

 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

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya