Maybe a little stupid question, but still could not help asking ..
In MySQL, I set the password 123ijdb - hash 727eee025601b4279260d8aa0a7aa0cc
I check:
<?php $pass = '123'; $password = md5(pass . 'ijdb'); //123ijdb echo $password; ?>
At the output we have all the same hash 727eee025601b4279260d8aa0a7aa0cc
And now pass the data from the text box of the form:
$password = md5($pass . 'ijdb');
I enter 123, and the other hash is ac477232f1188855df4214b94cafab2b
And if you do this:
$pass = $_POST['password']; $password = md5($pass . 'ijdb');
The output is the "correct" hash 727eee025601b4279260d8aa0a7aa0cc
Actually, I wonder why this is so if you save the hash to a variable, then everything works, and if not, it does not work, but the password does not change.