Downloading and verifying that a file hasn’t been inadvertently or maliciously changed has been the job of admins for a while. Ideally, to make sure the file you have downloaded is exactly the same as the source, you would make a byte-to-byte comparison. But that’s not often practical or possible for files you’ve downloaded.
Additionally, that just proves the file you downloaded was the...