Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP What is the difference between md5() and crc32() and sha1() crypto on PHP?

Have Programming Question? Ask it here!
 
 
 


brijesh
What is the difference between md5() and crc32() and sha1() crypto on PHP?
1 Answer(s)      3 years and 9 months ago
Posted in : PHP


What?s the difference between md5(), crc32() and sha1() crypto on PHP?


Advertisement
View Answers

November 15, 2010 at 6:11 PM


Hi everyone,

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.

Thanks



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com