Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8164183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T19:15:40+00:00 2026-06-06T19:15:40+00:00

I am aware that MD5 hashes are not advisable for security any more but

  • 0

I am aware that MD5 hashes are not advisable for security any more but I have been using them as a checksum to make sure that a file has not been corrupted after a download/transfer, which I thought was still ok. Though after using this method on a file bigger than a gigabyte, I found that the stored and generated hashes did not match. This was after I had transferred it from one computer to another via a USB stick. I’ve searched online and found a couple of references to large files possibly creating inconsistent hashes but I didn’t see anything conclusive.

I am using ComputeHash(Stream inputStream) of MD5CryptoServiceProvider to create the hash before and after transfer, so it should not be a case of the byte format being messed up between different languages or something. I also tried building the hash from the file again and the second time it seemed to create matching hashes fine. Did I just get unlucky and actually end up corrupting the file after copying it on and off the USB stick? Or is this a known problem with MD5 and I should ditch it completely? If so, what would be the best replacement that would ideally also be available as standard in C#, is SHA1 the next best option?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T19:15:40+00:00Added an answer on June 6, 2026 at 7:15 pm

    The MD5 hash of some data will be exactly the same as a second MD5 hash of exactly the same data, regardless of the size of that data. The only problem with MD5 for large files is that, in some cases, you might get the same hash for two different files. This is ludicrously unlikely, though.

    The same thing will apply for SHA1 and any other hash algorithm, though, since you’re converting a large data-space down into a small hash-space.

    It sounds significantly more likely that corruption occurred during the transfer, either on the USB bus or the flash device itself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm aware that MD5 has had some collisions but this is more of a
I am aware that questions about recurring events are common but I have not
I'm aware that variants of this question have been asked before, but I do
I'm aware that questions about the stack vs. the heap have been asked several
I'm aware that similar questions on SO are numerous, but I have a caveat.
I am aware that javascript does not allow true multidimensional arrays but you can
I am aware that this is a more subjective question than is preferred, but
I am aware that by default Java does not have the so-called eval (what
I aware that this will be a less programming question, but still... How can
I am aware that I can set null like string val = null; But

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.