MD5/SHA1 checksum verify - file extension error

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
davop
Junior Member
Junior Member
Posts: 18
Joined: 2009-12-13, 13:15 UTC

MD5/SHA1 checksum verify - file extension error

Post 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* ?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC only checks the extension at this time, not the contents. I will consider to support the above extensions too.
Author of Total Commander
https://www.ghisler.com
davop
Junior Member
Junior Member
Posts: 18
Joined: 2009-12-13, 13:15 UTC

Post by *davop »

Great - thanks.

I also ran into another unsupported case today:

md5sum.txt
sha1sum.txt
User avatar
kesdoputr
Member
Member
Posts: 168
Joined: 2007-12-27, 12:38 UTC

Post by *kesdoputr »

Is it possible to make the checksum's content to be UPCASE?It's usually seen in checksum files.
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post 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?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe, but only additionally...
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post 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?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC does this to prevent users from selecting the files to be checked themselves instead of the associated checksum files.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post 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
lizy11
New Member
New Member
Posts: 1
Joined: 2011-09-07, 08:08 UTC
Contact:

Post 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
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post 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).
Post Reply