WHAT’S THE DIFFERENCE BETWEEN MD5(), CRC32() AND SHA1() CRYPTO IN PHP?

Sanjay Sharma

Total Post:42

Points:210
Posted by  Sanjay Sharma
PHP 
PHP
 986  View(s)
Ratings:
Rate this:
  1. Sanjay Sharma

    Post:42

    Points:210
    What’s the difference between md5(), crc32() and sha1() crypto in PHP?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!