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

Single Hash Issue #2

Open
boyter opened this issue Jul 19, 2022 · 2 comments
Open

Single Hash Issue #2

boyter opened this issue Jul 19, 2022 · 2 comments

Comments

@boyter
Copy link
Owner

boyter commented Jul 19, 2022

When using the "--format hashdeep" option it seems to work well, except if I just assign a single hash option i.e. "--hash md5" it will leave a double comma after the MD5 hash (typically for SHA256), which is not present in a natively generated hashdeep file if you just assign it to calculate a single hash.

@boyter boyter closed this as completed Jul 19, 2022
@sergeevabc
Copy link

sergeevabc commented May 9, 2024

Windows 7 x64, Hashit 1.2.0.

$ hashit.exe -p --hash sha256 --format json hello.7z
[====================================================================] file: hello.7z
[--------------------------------------------------------------------] file:
[{"File":hello.7z","MD4":"31d6cfe0d16ae931b73c59d7e0c089c0","MD5":"d41d8cd98f00b204e9800998ecf8427e","SHA1":"da39a3ee5e6b4b0d3255bfef95601890afd80709","SHA256":"0c91e2a9f3abe04776c1a41a399ef6f5d96024fd46909b9c104f2f3677344ec0","SHA512":"cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e","Blake2b256":"0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8","Blake2b512":"786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce","Blake3":"af1349b9f5f9a1a6a0404dea36dcc9499bcb25c9adc112b7cc9a93cae41f3262","Sha3224":"6b4e03423667dbb73b6e15454f0eb1abd4597f9a1b078e3f5b5a6bc7","Sha3256":"a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a","Sha3384":"0c63a75b845e4f7d01107d852e4c2485c51a50aaaa94fc61995e71bbee983a2ac3713831264adb47fb6bd1e058d5f004","Sha3512":"a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26","Bytes":31543297,"Description":"","Version":"","Date":"","Urls":null}]

Ben, as you can see, --format json doesn't take into account the selected hash here and calculates too much.

@boyter boyter reopened this May 9, 2024
@boyter
Copy link
Owner Author

boyter commented May 9, 2024

Ill have to investigate this for this case then it seems.

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

2 participants