How to store passwords securely in database

I am thinking of making a mini social media to learn all the issues and lessons that I can learn from making a mini social media. So, the first step is to create a way to store the passwords of users securely. I refered to this guide (How to store passwords safely with PHP and MySQL). It is very straightforward, but there are some codes missing on how to implement it. Below is my code, and the way I implement it. I named my mini social media “BrainTwo”. This name comes from connecting two brains, thoughts, so brain times 2, so braintwo.


Leave a Reply