Replies: 1 comment 3 replies
|
Thank you for your request! In Jacksum 4.0 I added additional options to manage the use case that you decribed more comfortable. PreparationLet's create an empty file called test.txt as the test file to demonstate the usage of Jacksum in this case. On Microsoft Windows: On Linux and Unix/macOS: Check File CreationIn Jacksum 4.0 there is the "full style" output, and if specified, the output will contain hash value, timestamp, file size, and file name - everything we need: For a shorter output in this discussion, we use full style, but disable the header: The actual timestamp will be different on your computer, but on my computer, the output of the check.txt file is Integrity VerificationNow, let's perform some checks. At first we modify the timestamp, simply by touching the file again (see above for the command), so the file will have the same (empty) content (hashes are equal by definition in this case), but a different time stamp. And now we perform the check by typing As you can see the expected and the actual timestamp are being printed. Note that in this case no hashing will occur, because hashing is expensive, and we know already that one of the expected values in the "check file" are different. In this case the easy to check time stamp. By default all information that can be found in the check file will be used for checks by Jacksum. What should be ignored for an check can be configured by the user. For example, let's ignore the timestamps: Now, it matches, because all the other critera match, except the timestamps which we have ignored. Note hat also in this case, no hashing will occur since we know already that the expected integrity as described by the check file is hurt. Since we don't see any additional information blow the FAILED line, it means that the hash value failed. BTW: You can achive the same with Jacksum 3.7 as well, but it is a little more work, because you have to specify Does that address your use cases? |
Uh oh!
There was an error while loading. Please reload this page.
I'd be interested to know when a file fails, what exactly has failed. I've had a couple of cases where files have had the last modified date change, but the file hash still remains the same. Things like this would be useful to identify.
All reactions