Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

create hash password in js

const bcrypt = require('bcryptjs'); // npm i bcryptjs
const password = "12345"
let salt = bcrypt.genSaltSync(10);
let hash = bcrypt.hashSync(password, salt);
// check hash password
// bcrypt.compareSync(password, hashPassword);
 
PREVIOUS NEXT
Tagged: #create #hash #password #js
ADD COMMENT
Topic
Name
2+5 =