jream — 2010-02-11T19:25:42-05:00 — #1
Hey, Im boggled now!
I am getting different passwords for the same string "jboy".
I run this in MySQL, and it stores the output in the database:
UPDATE users SET password = MD5(password)
I echo this after typing in "jboy" in a field
echo $this->password = md5($password);
They don't match up, is there something I don't know about here?
raffles — 2010-02-11T19:40:13-05:00 — #2
Are you sure there isn't any whitespace, newlines or anything of the sort that might be interfering? Use trim().
It seems to be the PHP one that's the problem. This online generator clearly uses PHP and it outputs the same as what your MySQL is producing. So the problem must lie with whatever you're passing to to PHP's md5().
jream — 2010-02-11T20:18:31-05:00 — #3
Thanks I will test this some more good to know where its coming from
jream — 2010-02-11T20:21:57-05:00 — #4
Hey you are right, it had to do with trim. Thanks dude