[php] php MD5 generates only one hashed output

Paul jpgorton at gmail.com
Wed Nov 24 08:06:35 EST 2010


try putting

    echo($_POST['userpass']);

somewhere temporarily, just to make sure the password you entered is making
it to your php script.

On 24 November 2010 06:30, Margaret Iaquinto <
Margaret.Iaquinto at stleonards.vic.edu.au> wrote:

> Not true. In the form, I typed "dogbite" as my password. This was used as
> $userpass. Later, I used "alice in wonderland' as my password. $userpass
> carried that value to the md5 function. Should it not have created a
> different output?
>
> Or is it using the string $userpass instead? Is that what you mean?
>
> OK. Will try some different stuff.
>
>
> Margaret Iaquinto
> Information Technology
>
> St Leonard's College
> Brighton Campus
> t (+61 3) 9909 9300
>
> www.stleonards.vic.edu.au
>
>
>
>
>
> >>> Greyruin <greyruin at gdurkin.com> 11/23/10 11:34 PM >>>
>
> Check your html form code for a typo :
>
> The md5 hash of "userpass" is 63e780c3f321d13109c71bf81805476e
>
> (I just tried it out on a whim at miraclesalad.com.)
>
> That's why you are getting the same hash every time - your variable
> always has the value "userpass" instead of the value that is typed into
> the text input on your form.
>
> Greg
> _______________________________________________
> http://www.edulists.com.au - FAQ, resources, subscribe, unsubscribe
> PHP Mailing List kindly supported by
> http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment Authority
> and
> http://www.vitta.org.au - VITTA Victorian Information Technology Teachers
> Association Inc
>
> _______________________________________________
> http://www.edulists.com.au - FAQ, resources, subscribe, unsubscribe
> PHP Mailing List kindly supported by
> http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment Authority
> and
> http://www.vitta.org.au  - VITTA Victorian Information Technology Teachers
> Association Inc
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/php/attachments/20101124/fea361bc/attachment.html 


More information about the php mailing list