Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compatibility for filesize (in bytes) in digest files #203

Open
a-raccoon opened this issue Mar 11, 2024 · 0 comments
Open

Add compatibility for filesize (in bytes) in digest files #203

a-raccoon opened this issue Mar 11, 2024 · 0 comments

Comments

@a-raccoon
Copy link

a-raccoon commented Mar 11, 2024

So, I've been asking a number of devs to include compatibility for reading and generating hash digest files (ie, .sha512) which include optional filesize along with the hash and the optional filename. The filesize is included as non-commented data, wedged between the hash and the filename with normal space delimiting.

Since the format of hash digests are validated anyway to determine whether or not the filename is being included, it's not that big of a deal to validate each line for the presence of filesize info as well. The added benefit of doing so permits software to validate hash digests and discover if files have been renamed or moved (or both) and to heal/repair the hash digest with the new filename or path.

As I understand it, the current formats being validated for are:

FFFFF
FFFFF *path\filename
FFFFF  path\filename

I'd like to see the inclusion of:

FFFF 12345 *path\filename
FFFF 12345  path\filename

(I will admit I don't fully understand the history behind the "space-astrisk-path" and "double_space-path" formats, nor do I know if you also validate for the sloppy "single_space-path" form as well.)

I don't think validating for this added filesize format should break anything. And if you're willing, it would be totally awesome if OpenHashTab could also generate these hash digests as well, and maybe even perform those extra functions I mentioned about discovering renamed files and repairing digests.

So far VoidTools Everything supports this extended format, HashCheck has promised to add it, and RHash allows it as a user-defined format. I've also just asked RapidCRC-Unicode to consider the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant