Hi All,
There is a sum utility in Unix which sum calculates and prints a 16-bit
checksum for the named file and also prints the number of 512 byte blocks in
the file.
Do any such utility exists for the files in Windows operating system, i.e,
does the Windows system provides any such utility, or what is the Windows
equivalent tool to this Unix utility.
the md5sum utility in linux will calculate a 128-bit <=> 16-char sum of a given file. since the algorithm is open, you should get a windows equivalent. you could even get the source of md5 implementation and compile the same on windows and on linux.
now md5 does indeed work on chunks of 512 bytes, and though i'm not a C guru, it would not be too difficult to insert printf statements to print the blocks of 512 bytes. note that the algorithm will add a pad to the file at the end.
i am assuming that you mean the md5 sum. without being more specific it is difficult to know exactly what utility you are referring to. i would assume that even crc programs would be available in windows, though md5 and sha1 are regarded as better options for determining file integrity.
mario
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
