Jump to content

Recommended Posts

I am not sure if this is the proper forum to post this in or not. I would have posted it in the faq/ code snippet forum but I cannot.

Anyways, I recently changed the layout of my database and soon ran into a serious problem. All of my users were getting the error message (when logining in) invaild password or username.  Since I knew that I had not changed the login function. It had to be a problem with the md5 or the database.

Well what I did was change the length of the password to 12 and almost everything that is md5'ed is longer then 12 characters. Here is an example with the password [b]test[/b]

test with a length of 12 [b]098f6bcd4621[/b]
test md5'ed normaly [b]098f6bcd4621d373cade4e832627b4f6[/b]

as you can see it normaly has a length of 32. This means that when trying to login with md5'ed password that your password will not be correct.

If any mods feel the need to move this post. Please do so.

Hope this helps someone some day.

Good Luck,
Tom
Link to comment
https://forums.phpfreaks.com/topic/16761-invalid-password/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.