• 0

MD5 Decrption in PHP and mySQL


Question

6 answers to this question

Recommended Posts

  • 0

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

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.