Teknomancer / beezer

Beezer is an archiving tool for the Haiku operating system.
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

File Splitter, Joiner: Add checksum support #21

Open Teknomancer opened 3 years ago

Teknomancer commented 3 years ago

When files are split, add an option to checksum the original (whole) file. This allows us to verify integrity when the files are joined into the original.

Store the checksum as a BFS file attribute in every split file. However, if a self-extracting executable is generated we can store the checksum only in the executable.

Checksums will slightly increase the size of each split file but since this is optional, the user can decide if file size is more important than being able to verify integrity (or he can of course, do it manually himself, hence optional).

The idea is to pick the checksum algorithm with speed in mind rather than collision resistance but at least as good as MD5 or something better (and faster).