Welcome Guest, Not a member yet? Register   Sign In
md5
#1

[eluser]Unknown[/eluser]
Hi!

I upgraded from Codeigninter 1.7 to 2.0. My users is stored with only md5 passwords (no salt or anything like that) it worked fine to retrive the users in the 1.7 using md5 to get the right password but now the md5 dont work as aspected.
The users cant be found and when i look att the md5 string from my login form its not the same as the ont in the database, has this something to do with the encryption key that you now need to set in codeigninter 2.0 to do?

Thank you in advance for your help.

this is how i write now the get the password in my controller
$password = md5($this->input->post('password'));
#2

[eluser]WanWizard[/eluser]
md5() is a PHP function, and has nothing to do with CI. Furthermore, the MD5 algorithm is static and clearly documented, it doesn't change over night.
The result of md5("test") now is the same as of md5("test") ten years ago.

What have you done to debug this?
#3

[eluser]InsiteFX[/eluser]
Could be that your database got corrupted try restoring a backup if you have one!

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB