Information Security with HelmetJS - Hash and Compare Passwords Asynchronously

Tell us what’s happening:

For this challenge, I wrote: bcrypt.hash(myPlaintextPassword, saltRounds, (err, hash) => {
console.log(hash)

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

})

My output is a hash and a true. The testing result shows tests completely. However this is not passing the challenge. I really want to know why! Thank you!!

###Your project link(s)

solution: https://fcc-infosec-bcrypt-r01f.onrender.com

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Information Security with HelmetJS - Hash and Compare Passwords Asynchronously

The URL you posted is passing the test for me.

Look in the browser console and network tab when you submit to see if there is some information.

1 Like

nvm I realized I wasn’t coding between start_async and end_async. Thank you for helping!