In this recipe, we will create a solution for protecting passwords from data security breaches by using cryptographic one-way irreversible hashing. Using this technique will make it so that if anyone is ever able to penetrate the security of the website to steal the user's passwords, the data will be useless for signing into a user's profile or for using on other websites. While it may sound like we are resigning ourselves to defeat from the very start this is in fact not the best way to think about this issue.
We must do many things to protect our system and users, and each additional step simply builds our overall protection to contain a security breach from completely compromising all aspects of the system. Users may use the same password on multiple sites and this will allow us to protect their other accounts. Additionally, hashing the user passwords is a very simple step and without this step, any security audit of any value would most certainly give...