Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
});
 
PREVIOUS NEXT
Tagged: #expressjs #create #encrypted #password
ADD COMMENT
Topic
Name
2+3 =