Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

hashing passwords with bcrypt

const bcrypt=require('bcypt')


bcrypt.genSalt(saltRounds, function(err, salt) {
  bcrypt.hash(password, salt, function(err, hash) {
  //add to database

  });
});
Source by heynode.com #
 
PREVIOUS NEXT
Tagged: #hashing #passwords #bcrypt
ADD COMMENT
Topic
Name
7+7 =