If there is (MD5, SHA-1), one input corresponds to only one output, and then, if you download the file and calculate the hash, it should get the same result. If the result is different, the file is damaged.
If (hash(file) == "Hash in page") validFile = true; else validFile = false;
jl23x
source share