i'm new to php password hashing since i'm also a beginner in php coding. I was able to make a simple login form, it requires a username and password. This password will then be saved to a database by Inserting into table using $_POST['password']. However i read that this is unsafe because its a plain text, you need to hash it.
I tried researching about password hashing in php. i found several write-ups but most of it are not clear for a beginner like me. Though i got some basic ideas but can't think on how to implement it.
Some of my questions: 1. How do I hash the password inputted by the user? 2. Once it is hashed, how do i pass it and save it to my database? 3. Is the password will then be saved as a hash (not plain text) in my database? if so, do i need to extend field length in my database to accommodate long hash passwords?
Those are some of my queries which is obviously from a beginner. I hope someone would enlighten me or show me where to start. I prefer basics so that I can comprehend.
Thank you very much!
EDIT: ok found some answers on the link provided. Thanks for tagging it as duplicate and i'm sorry for that. cheers!!