Page 1 of 1

MD5/SHA1 checksum verify - file extension error

Posted: 2010-09-08, 08:10 UTC
by davop
Not all md5 / sha1 checksum files that can be downloaded from the Internet are conforming to the same naming / extension format (*.md5, *.sha / *.sha1).

One example I ran into today is an ISO image for a Linux distribution where the extension was *.ms5sum
Selecting Files -> Verify checksum in this case resulted in error message
---------------------------
Total Commander
---------------------------
Please select only SFV, MD5 or SHA files!
---------------------------
OK
---------------------------

Since this is obviously md5 checksum file which TC does not recognize as such due to it failing file extension test, perhaps it would be possible to either:
a) extend allowed extension list to handle more cases,
b) find smarter way to verify if a file indeed contains checksums, or
c) always assume file under selection is a checksum file if user initiates checksum check.

Extensions I have come across that are not supported include:

*.sha1sum
*.sha1sums
*.md5sum
*.md5sums
md5sums (only filename without extension, athough "md5sum" works )

Perhaps a good test for case a) above, would be if either extension or filename start with sha1* or md5* ?

Posted: 2010-09-09, 14:12 UTC
by ghisler(Author)
TC only checks the extension at this time, not the contents. I will consider to support the above extensions too.

Posted: 2010-09-09, 20:25 UTC
by davop
Great - thanks.

I also ran into another unsupported case today:

md5sum.txt
sha1sum.txt

Posted: 2010-09-16, 11:31 UTC
by kesdoputr
Is it possible to make the checksum's content to be UPCASE?It's usually seen in checksum files.

Posted: 2010-09-16, 18:33 UTC
by fenix_productions
@ghisler(Author)
ghisler(Author) wrote:TC only checks the extension at this time, not the contents. I will consider to support the above extensions too.
Wouldn't it be better to make it configurable by INI parameter?

Posted: 2010-09-20, 17:07 UTC
by ghisler(Author)
Maybe, but only additionally...

Posted: 2010-11-28, 20:56 UTC
by white
Why does Total Commander check the file name extension? I have noticed Total Commander auto detects the kind of checksum for each line. So you can mix all kinds of checksums in one file and verify them in one go with Total Commander. Why do you have to name such file for example "md5sums" in order to be able to verify the file?

Moreover using Total Commander you can create checksums files with any name. The file name extensions ".sfv", ".md5", ".sha" are suggestions only. But you can't verify those files with Total Commander without renaming them first.

Why not give the user the choice to continue when Total Commander does not recognize a file as a checksums file?

Posted: 2010-11-29, 15:02 UTC
by ghisler(Author)
TC does this to prevent users from selecting the files to be checked themselves instead of the associated checksum files.

Posted: 2010-12-01, 12:02 UTC
by white
ghisler(Author) wrote:TC does this to prevent users from selecting the files to be checked themselves instead of the associated checksum files.
So you could warn the user about that and give him the choice to continue anyway. For example like this:

Some files do not seem to be SFV, MD5, SHA files.
Continue anyway?

OK, Cancel

Posted: 2011-09-07, 08:11 UTC
by lizy11
Hey guys,
I'm looking for a way to get MD5 and SHA1 Hash code of a file in Windows 7 x64.
Any helps would be appreciate.

Thanks

Posted: 2011-09-07, 21:08 UTC
by white
lizy11 wrote:I'm looking for a way to get MD5 and SHA1 Hash code of a file in Windows 7 x64.
Any helps would be appreciate.
Check out menu option Files/Create Checksum File(s) (CRC32,MD5,SHA1).