Hashing a Password
Understand the importance of hashing passwords in Angular applications to protect user data. Learn how to use the Crypto JS library to implement SHA256 hashing, prepare hashed passwords for API requests, and avoid sending plain text passwords.
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 popular hash.
Check out this site: https://xorbin.com/tools/sha256-hash-calculator.
It’s a tool for hashing text. Try ...