I was wondering what is the sense to use salt at all? What kind of use it can bring or maybe better to ask how to use it?
If user is wants to log in and typing his/her user name and password while we process the data what is the sense to do this;
# I assume we got the all info, connected to database etc
$salted_password = $salt.$form_password
Since we take the user name information from form input, compare it in our database if there is any match, and if there is we get the salt from database and combine it with users password so what good it can bring?
Maybe I just understood the usage wrong, I will be glad if anyone could explain me this whole process why it is making our log in system more secure?
Thank you for your help and concern in advance.