Information Security with HelmetJS - Understand BCrypt Hashes

Information Security with HelmetJS - Understand BCrypt Hashes
0

#1

Does anyone know why the testcase BCrypt has been properly required fails here ?

Code:

/**********************************************
* 4. Applied InfoSec Challenges
* =============================
***********************************************/

var express = require('express'); // Do Not Edit
var app = express();              // Do Not Edit
var helmet = require('helmet');
var bcrypt = require('bcrypt');

// ----
...


#2

Make sure you are also including dependency in package.json

"helmet" : "^3.12.1"

#3

That’s not the error.
The dependency that it’s required is ‘bcrypt’. I have this dependency, as you can see in the Image the BCrypt dependency Test passes.


#4

You need to start off with the new glitch template for Bcrypt exercises. There should be a new link on the exercise page.


#5

Ok, that makes more sense Thx.
It would be better if it would said something about starting a new project…The challenge is in the same helmet chapter & has the same description about glitch as the helmet challenges…


#6

Yeah I agree. I was stuck here when I started working on the bcrypt exercises.