Hi, sorry I'm late to respond,

Verification of files can be very useful, so thanks.

On Fri, Aug 14, 2026 at 7:46 AM Bernd Böckmann via Freedos-devel
<[email protected]> wrote:
>
> today I uploaded CHKSUM release 2:
>
> https://cloud.disroot.org/s/EmNZXrN8oZkr5X2?dir=/chksum/release2

The .ZIP downloaded is a bit strange. The file sizes are wrong, and
regular Info-Zip UNZIP doesn't like it. I ended up using an old DJGPP
build of 7Z.EXE to unpack it.

> Major changes:
>
> - SHA-384, SHA-512 and MD4 are now supported checksum algorithms.
> SHA-384 and SHA-512 are particularly slow, as they make use of 64-bit C
> integer arithmetic, and GCC-IA16 outputs slow code for it. SHA3-384 and
> SHA3-512 are not affected, as I reformulated those algorithms to use
> 32-bit integer arithmetic.

Often I will just use Joe Forster's old CRC32.COM (only 1 kb) for
simplicity. It's pretty speedy.

Blair's old (FreeDOS) md5sum from 2006 is what I normally use. It also
supports CRC32 and SHA-1 (which hash, admittedly, is broken and
deprecated).

We also had a FreeBASIC fbmd5 (w/ inline asm?) by DOS386. Oh, and of
course DJGPP's port of GNU md5sum.

I take it back, I also (rarely) use GNUish cksum (in connection with
tr and cut on NDISASM's output to skip encoding bytes).

I forget what p7zip (DOS) supports, something like SHA256.

Oh, also the QDtools (?) Modula-2 guy (Phillipe Guichon?) has a DOS
version of CS.EXE that is crc32 and md5.

In some ways, I wanted a small but portable "crc32 only" program, but
I never got around to making one. On NetBSD, I think I tried importing
crc32.pl but lacked some includes, so I ended up hacking up a script
using Gzip on a temporary copy.

> - In addition to the IA16-GCC built CHKSUM.EXE, a 32-bit executable
> CHKSUM32.EXE built with DJGPP is provided. This is much faster than the
> 16-bit binary, especially for SHA-384 and SHA-512.

Your 16-bit build does not handle wildcards by default (but DJGPP
always does unless you disable that).

You also did not UPX any binaries.

> - You now have to use the -v flag if you want to see every processed
> file for -c (check) and -o (output checksums to file) operations.
> Otherwise, in addition to a summary, only errors and / or files with
> checksum mismatches are shown.

DJGPP's md5sum is by default verbose, but Blair's md5sum is not. For
the latter, I end up having to "set MD5=v" first since a lot of my
.BATs just do a simple "md5sum -c md5.sum". That reminds me, sometimes
I run 4DOS and it also has %@crc32[] and %@md5[].

(Sorry if that is too much trivial info. I try too hard to be
broad-minded sometimes.)


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to