Putting It All Together
Learn how to generate hashes with salts in Node.js.
We'll cover the following...
We'll cover the following...
Coding our application
Now that we’ve covered the basics, let’s write a little code.
The scenario here is that we are registering a new user. We will need to generate a random salt, generate their password hash, then store those to an imaginary database for authentication in the future.
We’re going to use the bcrypt
module for our code here. ...