Home > DeveloperSection > Interviews > What’s the difference between md5(), crc32() and sha1() crypto in PHP?

Posted on    March-18-2011 12:00 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  803  View(s)
Rate this:

Sanjay Sharma
Sanjay Sharma

Total Post:42

Points:210
Posted on    March-18-2011 12:00 AM

The major difference is the length of the hash generated. CRC32 is, evidently, 32 bits, while sha1() returns a 128 bit value, and md5() returns a 160 bit value. This is important when avoiding collisions.

Don't want to miss updates? Please click the below button!

Follow MindStick