• 10 hours
  • Medium

Free online content available in this course.

course.header.alt.is_video

course.header.alt.is_certifying

Got it!

Last updated on 11/24/21

Are You Ready to Secure Your API?

Log in or subscribe for free to enjoy all this course has to offer!

Evaluated skills

  • 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