shiza Posted June 19, 2012 Share Posted June 19, 2012 $string="this is my string"; $hash=md5($string); I strore it in database (only $hash) How can i get back the $string form $hash? Quote Link to comment https://forums.phpfreaks.com/topic/264425-is-there-any-way-to-reverse-hash-in-php/ Share on other sites More sharing options...
HDFilmMaker2112 Posted June 19, 2012 Share Posted June 19, 2012 $string="this is my string"; $hash=md5($string); I strore it in database (only $hash) How can i get back the $string form $hash? You can't... that's the point of hashing. Quote Link to comment https://forums.phpfreaks.com/topic/264425-is-there-any-way-to-reverse-hash-in-php/#findComment-1355086 Share on other sites More sharing options...
cpd Posted June 19, 2012 Share Posted June 19, 2012 If you're attempting to make a comparison between a hashed string in the database and POST data you can hash the POST data and compare the two hashed strings. Quote Link to comment https://forums.phpfreaks.com/topic/264425-is-there-any-way-to-reverse-hash-in-php/#findComment-1355094 Share on other sites More sharing options...
shiza Posted June 19, 2012 Author Share Posted June 19, 2012 Thanx for the reply...Now i Got it .... Quote Link to comment https://forums.phpfreaks.com/topic/264425-is-there-any-way-to-reverse-hash-in-php/#findComment-1355099 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.