• 10 heures
  • Moyenne

Ce cours est visible gratuitement en ligne.

course.header.alt.is_video

course.header.alt.is_certifying

J'ai tout compris !

Mis à jour le 21/02/2022

Are You Ready to Secure Your API?

Connectez-vous ou inscrivez-vous gratuitement pour bénéficier de toutes les fonctionnalités de ce cours !

Compétences évaluées

  • Protect selected routes with token-based authentication in an Express app
  • Question 1

    In an Express app, a controller:

    • Registers different routes to the app

    • Contains the business logic for a given route or set of routes

    • Registers different routes to a router, which it then exports

  • Question 2

    It is generally safe to store unencrypted passwords in a database that requires a password to access.

    • True

    • False

  • Question 3

    What does bcrypt's hash function do?

    • It creates an encoded string that can later be decoded using the same secret string

    • It encrypts the given string with a simple two-way cipher

    • It encrypts the given string with a one-way algorithm, making it virtually impossible to decrypt