The Collision Rate Tests of Two Known Message Digest Algorithms

MD5 and SHA-1 are two known message digest algorithms widely used in the information security. A novice method of evaluating them is proposed here to analyze the collision rate of those two message digests. Computer-simulating technology is a key to this method and used to establish the statistical evaluation model in which data blocks are produced by a random number generator and corrupted by natural scrambling in order to compare the value of message digest for the same data with its corrupted copy, if two message digests collide, they meet at the digest. The results show that 160-bit SHA-1 code is more secure than 128-bit MD5 code and has a fewer collision rate, but SHA-1 executes more slowly than MD5 on the same hardware.