Jump to content


md5 encoding (PHP)


3 replies to this topic

#1 Hip Hop Artist

    Young Padawan

  • Members
  • Pip
  • 152 posts
  • Gender:Male
  • Location:Canada

Posted 01 February 2007 - 04:50 PM

I have md5 encoded the passwords entered into the database but i need to know how to reverse doing that. If someone needs thier password cuz they forgot it, the email will send out a big code that wont work when they try it. so is it even possible to revers md5 encoding?

#2 cheerio

    Young Padawan

  • Members
  • Pip
  • 246 posts
  • Gender:Male

Posted 01 February 2007 - 04:57 PM

I think some* people have done it, but it's isn't like public or anything. It would probably take a lot of time. Best thing you can do now is to simply generate a new password or something

#3 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 01 February 2007 - 05:04 PM

The point of an encryption is that it can't be undone. You encrypt the password and insert it into a database knowning that no one will ever know what it is.

The only thing you can do, and the only thing you should do, is simply generate a random password like everybody else, and send them that. Then they can log in with that and change their password to something of their preference.

hint: use uniqid() to help generate the password.

#4 Hip Hop Artist

    Young Padawan

  • Members
  • Pip
  • 152 posts
  • Gender:Male
  • Location:Canada

Posted 01 February 2007 - 08:15 PM

ok thanks guys





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users