Comparing the MD5 results of split files against the MD5 of the whole

試著忘記壹切 提交于 2019-12-01 12:16:52

You likely can't do that - MD5 is complex enough inside and depends on actual data as well as the "initial" hash value.

You could instead generate "incremental" hashes - hash of first part, hash of first plus second part, etc.

Not exactly but the next best thing would be to do this: cat filepart1 filepart2 | md5sum or cat filepart* | md5sum

Be sure to cat them back together in the correct order. by piping the output of cat you don't have to worry about creating a combined file that is too large.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!