Jump to content

Sending a user forgotten password


extrovertive

Recommended Posts

K, I have a table with userid, email, and their password. Their password are encrypted using MD5. In my login page, there's a link for "Forgot password?"

Now, since the password is based on a 1-way hash encrpytion in the database, how will I send them their password should they forget it?
Link to comment
https://forums.phpfreaks.com/topic/16397-sending-a-user-forgotten-password/
Share on other sites

sha-1 is one way encryption too. There are encryption/decrption functions in PHP. However you can encode/decode strings with base64_encode/base64_decode however these are not secure. The only way to reset the users password is to create a random password generator which will generate a random password for them, or get them to reset the password.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.