How do large files have their integrity verified?

244 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

While hashing is definitely a thing, there are simpler options. For instance, you can check the size of the file. Your file could be wrong and remain the same size but if the size is wrong then you know for sure that the file is wrong. The next level of complexity is called a [checksum](https://en.wikipedia.org/wiki/Checksum) and that’s a lot like measuring the length but you can do it in more dimensions and, depending on how your checksum works, use it to find out where the problem is if there is one.

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