When A MD5 hash from a file dose the hash generates for the File name ? .. or how unique is the MD5 hash from file to file ?
Share
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.
MD5 is long and good enough to prevent random collisions between two files.
But if you have an attacker that can control the files, he can easily create two files that have the same hash. This is because MD5 has collision vulnerabilities. Consider using another hash, such as SHA1. Git uses the SHA1-Hash of files to identify them.