Information Security with HelmetJS - Hash and Compare Passwords Asynchronously

Tell us what’s happening:
Describe your issue in detail here.
I am getting test failed here even though I have placed the code withing the //START_ASYNC and //END_ASYNC
//START_ASYNC

bcrypt.hash(‘myPlaintextPassword’, saltRounds, (err, hash) => {
console.log(hash);
bcrypt.compare(‘myPlaintextPassword’, hash, (err, res) => {
console.log(res);
});
});

//END_ASYNC
still I am getting failed
Your project link(s)

solution: boilerplate-bcrypt - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Information Security with HelmetJS - Hash and Compare Passwords Asynchronously

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.