LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP md5 oddity (https://www.linuxquestions.org/questions/programming-9/php-md5-oddity-276322/)

gk_ 01-10-2005 08:23 PM

PHP md5 oddity
 
I'm not sure if this is the right place but the programming form i post at is down (somethingleet)

So I have two small chunks of code

Code:

md5('password');
returns 5f4dcc3b5aa765d61d8327deb882cf99

Code:

$password='password';
md5($password);

returns 86a65acd94b33daa87c1c6a2d1408593

I would think they create the same result but i get differnt values, any explination?

OMG, oops I found I typed the variable name wrong...

I'm soo embarrassed. You look at something soo long and it seems right. untill you retype the whole thing.


All times are GMT -5. The time now is 05:34 PM.