Difference between md5(), crc32() and sha1() crypto in PHP?

Friday, February 12, 2010 23:46
Posted in category PHP Interview Questions

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.

  • Share/Bookmark
You can leave a response, or trackback from your own site.

One Response to “Difference between md5(), crc32() and sha1() crypto in PHP?”

  1. forex robot says:

    February 16th, 2010 at 3:53 pm

    What a great resource!

Leave a Reply