MD5/SHA1 checksum verify - file extension error
Posted: 2010-09-08, 08:10 UTC
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* ?