Hashing a Password
In this lesson, we'll hash the password before sending it to the API.
We'll cover the following...
The API we’re using requires that we hash the password. But what exactly does that mean? Storing a password in plain text is considered bad practice. If a hacker can access the database, they’ll be able to view every user’s password.
In case a database is hacked, one way to secure passwords is by hashing them. Hashing is the process of converting a value into another. It makes a value challenging to recognize.
Hashing is a complex process that we won’t dive into too much. There are hundreds of algorithms available for hashing values. Which algorithm you use is up to you. Let’s look at an example of the SHA256 hash. It’s a reasonably ...