Reputation: 3
What would be the best way to combine checksum of the multiple files (or even folders?) ?
For multiple files I tried to do the approach:
As one of the existing answers proposed, but I can't get correct result, the way I was checking whether checksum is correct is with 7zip. There is always possibility that there is bug there, but highly unlikely.
I don't need the strict code example of how to do it, but rather an rough overview of what to do.
Thanks in advance guys!
Upvotes: 0
Views: 1851
Reputation: 256761
It really is your choice, and what goals you like:
SHA2
object, and keep adding files to itAnother suggestion is:
By keeping the hash of each file, someone can validate each file independently (i.e. they don't need access to all the data to verify the file's contents)
The approach used by BitTorrent is to:
Upvotes: 1