Hi there
I can't find a way to do this. I guess it has to do with cryptoutils but I haven't been able to figure it out.
What I'm trying to do is let the user to reset his/her password and get it by email. Because people, sometimes forget their passwords.
Since passwords are encrypted, I have no idea how to handle it. How do I encrypt the password so I have it already encrypted on the db and then send the original by email out?
reset password and send email
IIRC, passwords are MD5 hashed (one-way encryption) so you can't really recover their original password.
This is why most password recovery emails send you a new password, rather than your own.
You could always generate a new random password when they request a password reset. Send them the password in an email, them hash it and put it in the database.
This is why most password recovery emails send you a new password, rather than your own.
You could always generate a new random password when they request a password reset. Send them the password in an email, them hash it and put it in the database.
Who is online
Users browsing this forum: No registered users and 149 guests