MD5 and SHA-1 (to Base-64) with saltThe major problem with MD5 and SHA-1 is that the hash values always give the same values, thus they are exposed to a dictionary attack. It is possible to add salt to the MD5 algorithm, to mix it up a little. In this case the MD5 value is calculated by: md5($string+ md5($saltvalue)) so that we take the hash of one of the salt values and compute the MD5 signature. This gets added to our input message and then hashed again. The result will be a range of hash values which will differ for each salt value. The results are then:
|