I have a problem with MySQL database password encryption. I have website with registration and login system. After i register it stores in my mySQL database login and password. In core.php file i have script which make registered password encrypted and this is code which do this: $security = array(
'level' => 'medium',
'salt' => '76rf876578uh6y'
I have also html5 element which is login system, it take from mySQL database information which i have used during registration and tries to login and here i have a problem changing my encrypted password.
This is code which i use to change encrypted password to normal in html5 element when i try to login.
I cannot login using this code.$salt = "76rf876578uh6y";
$epassword = crypt($salt,$password);
after i change this line:$epassword = crypt($salt,$password);
to this:$epassword = $password;
i can login by using my encrypted password which i can see in mySQL database. so how i change this line that i can login by using my original registered password not encrypted.