Basic PHP Programming Question:
Download Questions PDF

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

Answer:

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.

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
How can we find the number of rows in a table using MySQL?How can we find the number of rows in a result set using PHP?