How do large files have their integrity verified?

242 views

How does a server know whether your local files are corrupted, version mismatched, or illegitimate without you uploading to the server? If they have to check through every file for integrity, wouldn’t that effectively be the same as downloading/uploading the entire folder?

In: 19

6 Answers

Anonymous 0 Comments

Enough people have explained hash sums, but it’s important to understand that a server might not know at about corrupted files at all. When transferring a file to or from the server, the networking protocol like TCP and the transfer tools take care that the data isn’t corrupted in transit. But that’s it. If the file is already corrupt at the source or becomes corrupt after storing (through bit rot or storage defects), the server will never know or care unless some external software/use-case decides to actively check integrity by comparing actual hash sum against expected value. So that’s not an inherent need. Generally, the server will just host the corrupt file.

You are viewing 1 out of 6 answers, click here to view all answers.