Does the encryption length of the hash encrypted influence his own security?
I mean if i use md5() or sha() if the returned hash has 35 chars or 55 chars does will this influence in some way security of hash?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Hash don’t have a “security”, as they generally can’t be inverted.
What they do have is risk of collision, i.e. two different messages (filenames, passwords etc.) mapping to the same hash.
To prevent that, the more bits you have, the better, provided that hash distribution is as flat (spread out) as possible.
In that case, collision probability is approximately the reciprocal of the bit length: a 32 bit hash is 1/2**32, etc.
There are also other considerations: under certain circumstances it is possible to craft a collision against MD5, and SHA is therefore to ne preferred. The difficulty of the attack is very high, and so you can still use MD5 for most purposes except very high security scenarios.