In this post, we will understand the difference between MD5 and SHA1 −
It stands for Message Digest.
It can have 128 bits as length of the message digest.
Its speed is fast in comparison to SHA1.
To understand the initial message, the aggressor would require 2^128 operations.
It is simple.
It doesn’t provide good security.
If the assailant requires to look for 2 messages that have identical message digest, then the assailant would have to perform 2^64 operations.
MD5 was presented in 1992.
It stands for Secure Hash Algorithm.
It can have 160 bits as length of the message digest.
Its speed is slow in comparison to MD5.
To understand the initial message, the aggressor would require 2^160 operations.
It is more complex in comparison to MD5.
It provides a decent amount of security.
The assailant would need to perform 2^80 operations which is greater than MD5.
It was presented in 1995.