Paul Posted May 2, 2003 Share Posted May 2, 2003 I knwo how to encode into MD5, but how do I decode from an MD5 code in a mySQL database using PHP? Thanks! Link to comment Share on other sites More sharing options...
0 Khephren Posted May 2, 2003 Share Posted May 2, 2003 I'm sure you can't decode MD5, unless you use brute force to crack it. Check here for more information http://www.phpbb.com/phpBB/viewtopic.php?t=64297 Link to comment Share on other sites More sharing options...
0 Paul Posted May 2, 2003 Author Share Posted May 2, 2003 ok, thanks for help anyway! Link to comment Share on other sites More sharing options...
0 Ricky Baby Posted May 2, 2003 Share Posted May 2, 2003 to check it agaisnt the database just encode it - its not designed to be decoded Link to comment Share on other sites More sharing options...
0 DCom Posted May 2, 2003 Share Posted May 2, 2003 as Smifffy said, its not meant to be decoded. MD5 is a hash algorithim, not an encryption algorithim. It is meant to be used to check if two files (or strings) match each other, in the case for files its used to make sure the file has not been tampered with and it matches the original file for which the hash has been produced. This is sorta like CRC checks. There is no decode function for a hash. To drive the point home : If you MD5 a 1mb file you get a 32 character number. Can that 32 character number be decoded to produce a 1mb file? obviously no. If you encrypt a 1mb file, the result is another 1mb file (or close to that size). You decode it and you get your original file again. The line noise on whether MD5 can be considered as an encryption algo or not is still at its peak. For encryption you could use the Mcrypt functions which support both encoding and decoding. Link to comment Share on other sites More sharing options...
0 Paul Posted May 2, 2003 Author Share Posted May 2, 2003 thanks all! :) Link to comment Share on other sites More sharing options...
0 john smith 1924 Veteran Posted May 2, 2003 Veteran Share Posted May 2, 2003 it is crackable- you cant get brute force md5 hackers which can crack passwords very effectivly. Link to comment Share on other sites More sharing options...
Question
Paul
I knwo how to encode into MD5, but how do I decode from an MD5 code in a mySQL database using PHP?
Thanks!
Link to comment
Share on other sites
6 answers to this question
Recommended Posts