A user accesses a form which reguires a login, so one enters a username and password.
These are to be checked against a database table presumably of the form
username hashed_password ....
so the password entered must be hashed , e.g.
and then compared to the ones in the databas table. So the question is,
how do I know what hashing the database uses? For simplicity, let's confine this to mysql.
These are to be checked against a database table presumably of the form
username hashed_password ....
so the password entered must be hashed , e.g.
Code:
$password=md5($_POST['pass']);
and then compared to the ones in the databas table. So the question is,
how do I know what hashing the database uses? For simplicity, let's confine this to mysql.