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

Posted on    May-04-2012 8:17 AM

 1 Answer(s)
  1810  View(s)
Rate this:

Arun Singh

Total Post:310

Posted on    May-04-2012 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