* fill in stub for helmet lesson on noSniff() * fill in stub for helmet lesson ieNoOpen() * fill in helmet hsts() stub * fill in stub for helmetjs lesson-DNS prefetching * fill in stub for helmet lesson on noCache() * fill in stub for helmetjs lesson on XSS * fill in stub for helmet lesson 'parent' * fill in stub for lesson on bcrypt * fix type `is` to `it` on line 11 * fill in stub for bcrypt hash lesson * fill in stub for bcrypt hash sync * fill stub for helmet lessons overview * fix spacing * fix typo
688 B
688 B
title
title |
---|
Understand BCrypt Hashes |
Understand BCrypt Hashes
Starting with this lesson there is a new boilerplate project to clone on glitch. So be sure to start by cloning that first!
Hint
- Add
bcrypt
to your project as a dependency. - After you add it, you need to require it in the server file.
Solution
- In the
package.json
file, click theadd package
button, search forbcrypt
, and click it to add it to your project. - Then, go in the
server.js
file, and require it by addingconst bcrypt = require('bcrypt');
near the top of the file by the rest of the dependencies.
Note: Be sure to submit the link to the live demo of your project.