hashdeep
hashdeep copied to clipboard
Padding in Piecewise mode
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.