We already have an amazing technology that does almost similar procedure - Torrents ! Yes It does the splitting hashing and all the stuff. "A file downloaded from a torrent will be corrupted if and only if the original file in server is corrupted". So what we have to do now is convert the download link into a torrent then download it using a torrent client feeding the corrupted file to it.
Now open the torrent file in your favorite torrent client. I'm using uTorrent. In that you have to give the directory as the one you have kept your corrupted file. I saved my corrupted file in E:\Raspbian folder. So I chose that. Also keep in mind that the filename of corrupted file must be same as in the torrent as you see in the above image.
Click OK. It will not retrieve the torrent information such as the number of pieces, size of a piece, their hash values etc. Then it will check the hash values with the downloaded file. Thats what will be happening now.
Downloading torrents is risky for you: your IP and leaked private data being actively tracked by your ISP and Government Agencies. Protect yourself from expensive lawsuits and fines NOW! You must use a VPN. It is the only way to download torrents fully anonymous by encrypting all traffic with zero logs. 2b1af7f3a8