MD5/SHA1 checksum verify - file extension error
Moderators: Hacker, petermad, Stefan2, white
MD5/SHA1 checksum verify - file extension error
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* ?
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* ?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact:
@ghisler(Author)
Wouldn't it be better to make it configurable by INI parameter?ghisler(Author) wrote:TC only checks the extension at this time, not the contents. I will consider to support the above extensions too.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
#128099
#128099
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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?
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?
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
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
https://www.ghisler.com
So you could warn the user about that and give him the choice to continue anyway. For example like this:ghisler(Author) wrote:TC does this to prevent users from selecting the files to be checked themselves instead of the associated checksum files.
Some files do not seem to be SFV, MD5, SHA files.
Continue anyway?
OK, Cancel