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? 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. 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. 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 .... 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
Archived
This topic is now archived and is closed to further replies.