Main /

MD 5 SUM

Main.SideBar

FreeDOS Sections (components)

PmWiki

MD 5 SUM

(redirected from DOS.MD5SUM)

MD5SUM

''Note: the current Pacific C build of FreeDOS' md5sum doesn't match up with any other well-known md5 tool. You'll need to recompile with OpenWatcom or Turbo C++ instead. Or go to http://www.fourmilab.ch/md5/ (Win32 binary w/ src) and recompile that, or just download XSUM11?.ZIP (DOS .EXE, no src) from http://www.simtel.net/pub/pd/45640.shtml .

MD5SUM is a checksumming tool currently maintained by Blair Campbell. The latest release is v3.0 and its features are:

  • MD5, SHA-256, CRC-32, and SHA-1 hashes
  • LFN support
  • Support for '/', '-', and the DOS switch character API for switches
  • /C to check hashes instead of create
  • Prints the full name, including path of every file hashed
  • Supports binary and text mode
  • /R to make hashes recursively
  • Support for paths with '/' OR '\'
  • Support for @file lists as input
  • Compiler support for OpenWatcom, Pacific C (incompatible?), and Turbo C

Some planned/currently implemented but not released features are:

  • CRC-16 checksums that check out with another checksummer
  • Look into Blowfish and RMD-160
  • A port to DJGPP
  • Any other requested features may be looked in to

Some known problems that I would appreciate help with fixing are:

  • MD5SUM in LFN and Recursive modes stops digesting after a certain amount of files

In order to use SHA-256 hashes, one must compile MD5SUM defining USE_SHA256, switch to the medium memory model, and link with the recommended amount of stack in the makefile.

MD5SUM version 3 is currently available at: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/MD5SUMS.zip (source) http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/MD5SUMX.zip (binary)

Testers are greatly appreciated, and I would be particularly interested in knowing how it works on an 8086. MD5SUM has been tested on a 286 and apparently works well (with all features enabled, like LFN and SHA-1).

The following messages can be translated to aid MD5SUM's NLS.

MD5SUM.EN

# Help message

0.0:Usage: MD5SUM [options] [/C [file]] | [file...]
0.1:Generates or checks MD5 Message Digests
0.2: /C check message digests (default is generate)
0.3: /[-]V enable or disable verbose mode (default is off)
0.4: /[-]L enable or disable LFN usage (default is enable if supported)
0.5: /[-]R[num] enable or diable recursing (default is off)
0.6: num is a number from 1 to 9 and limits recursion (default=4)
0.7: /[-]S same as /[-]R
0.8: /T read files in text mode
0.9: /B read files in binary mode (default; overrides /T)
0.10: /M[:|=]mode select the digest mode
0.11:The input for /C should be the list of message digests and file names
0.12:that is printed on stdout by this program when it generates digests.
0.13:The argument for /M should be a digest mode, which could possibly be SHA,
0.14:CRC32?, SHA256?, or MD5, depending on how MD5SUM was compiled.

# Various other messages

1.0:Invalid option in
1.1:File does not exist
1.2:read error on stdin
1.3:error reading
1.4:unrecognized line
1.5:can't open
1.6:FAILED
1.7:check failed for
1.8:of
1.9:file(s) failed check
1.10:no files checked
1.11:File is a subdirectory
1.12:Warning: LFNs not supported
1.13:Option missing argument
1.14:Invalid checksum mode
1.15:Directory does not exist

MD5SUM.NL

# Hulpboodschap

0.0:Gebruik: MD5SUM [opties] [/C [bestand]] | [bestand...]
0.1:Genereert MD5 sommen en controleert bestanden aan de hand hiervan
0.2: /C controleert bericht stukken (standaard is genereren)
0.3: /[-]V toont bestandsnamen tijdens controle, of juist niet
0.4: /[-]L wel of geen LFNs gebruiken indien beschikbaar
0.5: /[-]R[num] handelt wel of niet recursief. num is een getal van 1
0.6: tot en met 9 en beperkt de recursie (standaard 4)
0.7: /[-]S handelt bestanden in subdirectories af, zelfde als /R
0.8: /T leest bestanden in tekst mode
0.9: /B leest bestanden in binaire mode (standaard; overheerst /T)
0.10: /M[:|mode kiest de controlesom-methode=]
0.11:De invoer voor /C behoort de lijst van berichtsommen en bestanden te zijn
0.12:welke getoond wordt door dit programma wanneer het controlesommen aanmaakt
0.13:Het argument voor /M dient een controlesom-mode te zijn, wat SHA, CRC32,
0.14:SHA256, of MD5 kan zijn, afhankelijk van how MD5SUM gecompileerd is.
# Various other messages

1.0:Ongeldige optie in
1.1:Bestand bestaat niet
1.2:fout bij het lezen van stdin
1.3:fout bij het lezen
1.4:niet herkende regel
1.5:kan niet openen
1.6:MISLUKT
1.7:Geslaage MD5 controle faalde voor
1.8:van
1.9:bestand(en) faalden de MD5 controle
1.10:geen bestanden gecontroleerd
1.11:Bestand is een subdirectory
1.12:Waarschuwing: LFNs niet ondersteund
1.13:Er ontbreekt een argument bij de optie
1.14:Ongeldige controlesom mode
1.15:Directory bestaat niet

MD5SUM.DE

# Help message

0.0: Benutzung: MD5SUM [/TBV] [/C [Datei]] | [Datei...]
0.1: Generiert und Überprüft MD5-Checksummen
0.2: /C Überprüfe Checksumme (Standard ist generieren)
0.3: /[-]V aktiviere oder deaktiviere lange Meldungen (default: aus)
0.4: /[-]L aktiviere oder deaktiviere LFN (default: automatisch)unterstützt)
0.5: /[-]R aktiviere oder deaktiviere Rekursion (default: aus)
0.6: num ist die maximale Rekursionstiefe (0-9, B default 4)
0.7: /[-]S Rekursiv arbeiten, wie bei /R
0.8: /T Lese die Dateien im Textmodus
0.9: /B lese die Dateien im Bin„rmodus (Standard; Uberschreibt /T)
0.10: /M[:!=]mode Digest Mode w„hlen
0.11:Die Eingabe von /C sollte die Liste von Nachrichtenschlüsseln und Dateinamen sein
0.12:dies wird vom Programm ausgegeben wenn es Schlüssel generiert
0.13:Das Argument fr /M ist der gewnschte Digest Mode, SHA
0.14:CRC32, SHA256 oder MD5 (nicht alle md5sum.exe sind mit allen Modes compiliert)

# Various other messages
1.0:Ungültige Option in
1.1:Datei existiert nicht
1.2:Lesefehler von stdin
1.3:Lesefehler
1.4:unerkannte Zeile
1.5:Öffnen unmöglich
1.6:Fehlgeschlagen
1.7:MD5-Check fehlgeschlagen für
1.8:von
1.9:Fehlgeschlagener MD5 Check für Datei(en)
1.10:keine Dateien Überprüft
1.11:Datei ist ein Unterordner
1.12:Warnung: LFNs nicht untersützt
1.13:Option vermisst Argument
1.14:Ungültiger Prüfsummenmodus
1.15:Verzeichnis existiert nicht

Recent Changes (All) | Edit SideBar Page last modified on April 14, 2007, at 12:12 PM Edit Page | Page History
Powered by PmWiki