yami007 Posted July 29, 2009 Share Posted July 29, 2009 i was wondering on way to un-md5 the password on db to send it back to the user when they claim for it, i cant find it myself thank you Link to comment https://forums.phpfreaks.com/topic/167994-solved-is-there-any-way-to-un-md5-the-encoded-password/ Share on other sites More sharing options...
TeNDoLLA Posted July 29, 2009 Share Posted July 29, 2009 No not possible, not in any normal way. Some of them might be crackable but thats whole another story.. The idea of md5 hash is that you can hash strings and then compare the hashes but you cant recover it. Link to comment https://forums.phpfreaks.com/topic/167994-solved-is-there-any-way-to-un-md5-the-encoded-password/#findComment-886047 Share on other sites More sharing options...
PFMaBiSmAd Posted July 29, 2009 Share Posted July 29, 2009 No, md5() is a one way hash. It is not encoding/encryption, so it is not possible to decode/decrypt it. You must use a lost password system where you generate a new one and send it to the user or use a "security question" to allow them to directly enter a new password while on the site. Link to comment https://forums.phpfreaks.com/topic/167994-solved-is-there-any-way-to-un-md5-the-encoded-password/#findComment-886049 Share on other sites More sharing options...
Mark Baker Posted July 29, 2009 Share Posted July 29, 2009 md5 doesn't encrypypt the password, it hashes it. The difference is that encrypted data can be decrypted to reveal the original value, hashed data cannot. When you hash a password using md5 (or sha1, or other hashing algorithm) you can't recover the original password. If the user forgets their password, you generate a new password for them, and let them know what that new password is.... then force them to reset to a password of their choice the next time they log in. Link to comment https://forums.phpfreaks.com/topic/167994-solved-is-there-any-way-to-un-md5-the-encoded-password/#findComment-886051 Share on other sites More sharing options...
yami007 Posted July 29, 2009 Author Share Posted July 29, 2009 ah thanks guys, i'll send them a new password then Link to comment https://forums.phpfreaks.com/topic/167994-solved-is-there-any-way-to-un-md5-the-encoded-password/#findComment-886054 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.