hashdeep icon indicating copy to clipboard operation
hashdeep copied to clipboard

Padding in Piecewise mode

Open helpquick opened this issue 4 years ago • 0 comments

My coding skills are not up to this level, so would appreciate some pointers of how to achieve this.

I would like to have the option of padding smaller blocks / files to the piecewise block size.

e.g. if I want to calculate the hash of all files with a piecewise block size of 4K, I’d like a 7K file to be padded to 8K so that the last block is calculated based on 4K block size, padded with NULLs (zero). A 1 byte file would also be padded with NULLs to 4K block size for calculating hash.

helpquick avatar Jun 11 '21 14:06 helpquick