freeCodeCamp/curriculum/challenges/arabic/06-information-security-and.../information-security-with-h.../understand-bcrypt-hashes.ar...

948 B

id title challengeType videoUrl localeTitle
58a25bcef9fc0f352b528e7c Understand BCrypt Hashes 2

Description

undefined

Instructions

undefined

Tests

tests:
  - text: ''
    testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/package.json") .then(data => { var packJson = JSON.parse(data); assert.property(packJson.dependencies, "bcrypt", "Your project should list "bcrypt" as a dependency"); }, xhr => { throw new Error(xhr.statusText); })'
  - text: ''
    testString: 'getUserInput => $.get(getUserInput("url")+ "/_api/server.js").then(data => {assert.match(data, /bcrypt.*=.*require.*("|")bcrypt("|")/gi, "You should correctly require and instantiate socket.io as io.");}, xhr => { throw new Error(xhr.statusText); })'

Challenge Seed

Solution

// solution required