home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast.iso / fileutil / brik.inf < prev    next >
Internet Message Format  |  1994-03-07  |  3KB

  1. From: dhesi@bsu-cs.bsu.edu (Rahul Dhesi)
  2.  
  3. I intend this program to be the standard comp.binaries.ibm.pc mechanism
  4. for automatic verification of incoming articles.  Once it is working,
  5. you will be able to tell tell at a glance whether an incoming posting
  6. in comp.binaries.ibm.pc was received in corrupted form.
  7.  
  8. BRIK is a general-purpose program to generate and verify 32-bit CRCs
  9. in both text and binary files.  The Checksum: headers in recent
  10. comp.binaries.ibm.pc postings contain CRCs that can be verified or
  11. updated with this program.
  12.  
  13. Advantages of brik over "sum" and most CRC programs I have seen are:
  14.  
  15. (a) It is freely redistributable and its algorithm is not proprietary
  16.     or licensed by *T&T or anybody else.
  17.  
  18. (b) It treats text files in a special way.  If you use brik to find
  19.     the CRCs of text files on an MS-DOS system, transfer the files to
  20.     a **IX system with Kermit and use brik on the **IX system, the
  21.     CRC calculated there will match the CRC calculated on the MS-DOS
  22.     system.  However, you can override this feature if you wish, 
  23.     and simply get a binary CRC for every byte in a file.
  24.  
  25. (c) Brik will also look for a Checksum: header in any text file (or
  26.     C source file) and verify it based on the contents of the file
  27.     that occur *after* the header.  This allows Usenet software to
  28.     change the initial header portion of an article without affecting
  29.     your ability to check the integrity of all lines that occur
  30.     after the Checksum: header.  Brik itself also updates the Checksum:
  31.     header if needed.
  32.  
  33. (d) Brik can create either text-mode or binary-mode CRCs for a bunch
  34.     of files that can be later checked by brik on the same or a
  35.     different system in one batch.  Although brik isn't designed for this
  36.     purpose, it can be used to keep track of files that change
  37.     unexpectedly (e.g. corrupted filesystems, viruses).  Since brik
  38.     will happily accept filenames on the command line, or from standard
  39.     input, or from a list inside one or more files, it is flexible and
  40.     will work well with other programs such as "find" (**IX) and
  41.     "stuff" (MS-DOS).
  42.  
  43. To verify the CRC of any comp.binaries.ibm.pc posting from the "rn"
  44. newsreader, type the command:
  45.  
  46.      | brik -c
  47.  
  48. This will feed the current article to "brik -c" as standard input.
  49. Brik will search for the Checksum: header, compare the CRC in that
  50. header with the calculated CRC of the rest of the file, and report any
  51. mismatch.
  52.  
  53. Rahul Dhesi         UUCP:  <backbones>!{iuvax,pur-ee}!bsu-cs!dhesi
  54.                     ARPA:  dhesi@bsu-cs.bsu.edu
  55.