[8.51] Verify Checksums doesn't report wrong SHA-256
Moderators: Hacker, petermad, Stefan2, white
[8.51] Verify Checksums doesn't report wrong SHA-256
Issues with wrong check sums of SHA-256 aren't reported by the UI.
Works for md5 as a charme.
Steps to reproduce:
1. create a check sum of SHA-256 type for any file.
2. verify check sum -> ok
3. modify check sum file manually and re-run verify check sum.
You'll see that the return values are always "OK" even though obviously the content was garbled.
Works for md5 as a charme.
Steps to reproduce:
1. create a check sum of SHA-256 type for any file.
2. verify check sum -> ok
3. modify check sum file manually and re-run verify check sum.
You'll see that the return values are always "OK" even though obviously the content was garbled.
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
NOT confirmed. I changed the checksum (or changed the file), and I get error that CRC is wrong.
Can you give me more details of what you changed?
Can you give me more details of what you changed?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
I can confirm this partly, although I'm totally unsure whether this is to be expected. Removing characters from the checksum, i.e. changing its length, still verifies the files as OK. This is true for all checksum types, although TC prints So TC didn't verify any checksum, did it?
Changing any byte of the checksum (keeping the checksum's length) fails the verification, though.
Regards
Dalai
Code: Select all
Errors: 0
OK: 0, not found: 0, read error: 0, wrong checksum: 0
Changing any byte of the checksum (keeping the checksum's length) fails the verification, though.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No it doesn't. TC looks at the length of the checksum, and only uses it if there is a matching length. As the results shows, there are 0 errors, but also 0 files OK, which means that TC did not see any valid checksums at all.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Well, then TC should say so in a more prominent way, don't you think? Right now TC requires you to read the result line really carefully because there's no warning or error and no color. I suggest you append a warning in a different color (e.g. yellow) saying "No checksums found/verified" or something like that.ghisler(Author) wrote:As the results shows, there are 0 errors, but also 0 files OK, which means that TC did not see any valid checksums at all.
Regards
Dalai
Last edited by Dalai on 2015-06-04, 22:50 UTC, edited 1 time in total.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Christian,
Roman
Ah, that's not optimal. In case I have a file with 2587 checksums and one of them is bad, I'll never know unless I count the lines in the file and compare it with the sum of the results.TC looks at the length of the checksum, and only uses it if there is a matching length. As the results shows, there are 0 errors, but also 0 files OK, which means that TC did not see any valid checksums at all.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Indeed. And I didn't think of that.
So, TC should show some information about invalid checksums in the results - at least when there are any invalid ones.
Regards
Dalai
So, TC should show some information about invalid checksums in the results - at least when there are any invalid ones.
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
How realistic is it that there is a checksum with the wrong number of digits? This doesn't happen, even when the file is corrupted - only when you edit the file manually.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Yes, it's unlikely to have corrupted checksum files. But IMO TC should handle as many errors as possible, at least at verifying checksums. As Hacker pointed out, you'll never know that you have corrupted files, since TC didn't check them and didn't complain about any wrong checksums.
Regards
Dalai
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Christian,
Roman
Very simple - I copy/paste the checksum from a website to verify a download but accidentally miss the first character when selecting.How realistic is it that there is a checksum with the wrong number of digits? This doesn't happen, even when the file is corrupted - only when you edit the file manually.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
2Hacker
I thought about that, too. However, that's not a problem since TC just shows "Please select only SFV, MD5 or SHA files!" in such a case. So the user gets some feedback immediately.
But I still think it's unfortunate that TC doesn't care to notify the user about wrong checksums in the checksum files...
Regards
Dalai
I thought about that, too. However, that's not a problem since TC just shows "Please select only SFV, MD5 or SHA files!" in such a case. So the user gets some feedback immediately.
But I still think it's unfortunate that TC doesn't care to notify the user about wrong checksums in the checksum files...
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Dalai,
Huh? You must be talking about some different situation. Steps to reproduce:
- have a file
- have its checksum and name
- copy checksum (minus one character) and the file's name into the clipboard and paste it into a file named eg. downloadedfile.md5
- run the .md5 file -> no error
Roman
Huh? You must be talking about some different situation. Steps to reproduce:
- have a file
- have its checksum and name
- copy checksum (minus one character) and the file's name into the clipboard and paste it into a file named eg. downloadedfile.md5
- run the .md5 file -> no error
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
You're doing it wrong
. Just kidding. I thought you mean it like this:
Regards
Dalai

- have a file
- have its checksum and name already in the clipboard (from a website or whatever)
- Use menu Files > Verify Checksums
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
- ghisler(Author)
- Site Admin
- Posts: 50861
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The problem is that these checksum files could contain comments, file details like size/time, and multiple checksum types where TC only supports some of them. Should I really show an error for each line not recognized by TC?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com