For my php-login system combined with a MySQL database, I use a md5 - encryption to convert passwords when an user registers himself. Everything worked fine on a Windows-host, but now I've changed the host to Linux. Now, when I register a example user, with password "azerty", I couldn't login... When I trie to login with "qwerty" as password, it works. So it's like the md5 function read my keyboard as a qwerty keyboard instead as an azerty...
What can I do to solve this problem?
EDIT:
In the register script I do this:
$password = md5($password);
and then save $password
to my database.
The loginscript checks on this:
if ($username == $dbusername && md5($password) == $dbpassword)