Which is the best overall hash algorithm. md5 or sha1. From what I know md5 is faster that sha1 but SHA1 is more complex than md5.
I am missing anything
Which is the best overall hash algorithm. md5 or sha1. From what I know md5 is faster that sha1 but SHA1 is more complex than md5.
I am missing anything
First of all, MD5 is broken - you can generate a collision, so MD5 should not be used for any security applications. SHA1 is not known to be broken and is believed to be secure. Other than that - yes, MD5 is faster but has 128-bit output, while SHA1 has 160-bit output.
Also both MD5 and SHA1 are not "encryption" algorithms - they are hash algorithms meaning that you can't restore the data after passing it through the algorithm.
I think that what you are missing firstly is that md5 and sha1 are not really encryption algorithms, they are for hashing.
Yes, you're missing quite a lot actually.
One, neither are encryption. Both are hashing algorithms.
Second, MD5 is not suitable for use for with any sort of sensitive information. Collisions exist with the algorithm, and there have been successful attacks against it. SHA1 doesn't have any attacks against it, but there have research that suggest it is vulnerable, and so SHA2 is preferred, until SHA-3 is finalized by NIST.