25.07.2016, 22:42
Hi. On my UCP, when you want to log in, you need to type your password, but on my database your password is encrypted on SHA1.
How can I make a converter so they just type their password and the converter will convert it to SHA1 and login can be successful?
How can I make a converter so they just type their password and the converter will convert it to SHA1 and login can be successful?
PHP код:
$query = mysql_query("SELECT username, password FROM users WHERE username = '$username'");