Author Topic: MD5() Problems  (Read 3430 times)

jakep

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
MD5() Problems
« on: November 19, 2007, 05:05:30 PM »
Hi.
With my website I have a user login system which encrypts passwords with md5();. When I do it in one script it is fine, but when I put it into the MySQL db it changes. No clue why. It is only that one though. Another script which encrypts it and puts it in the db is fine. Please Help!

Ragster00

  • Senior Member
  • ****
  • Posts: 499
  • Karma: +0/-0
    • View Profile
    • Help with PHP?
(No subject)
« Reply #1 on: November 20, 2007, 12:36:14 PM »
Are you sure the field you are enter the data into is set long enough?

The encrypted will output a lot more characters and if the field lenght isn't long enough it will cut it off and not work.
-- I do what I can to help! :)
Not all code provided is meant to be a working, error free code. It is meant only as a guide.

jakep

  • New Member
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
(No subject)
« Reply #2 on: November 20, 2007, 07:05:10 PM »
I solved it. I was encrypting it twice.