home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / C / CRACKLIB.ZIP / CRACKLIB.TAR / cracklib25_small / util / testlib.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-09  |  687 b   |  36 lines

  1. /*
  2.  * This program is copyright Alec Muffett 1993. The author disclaims all 
  3.  * responsibility or liability with respect to it's usage or its effect 
  4.  * upon hardware or computer systems, and maintains copyright as set out 
  5.  * in the "LICENCE" document which accompanies distributions of Crack v4.0 
  6.  * and upwards.
  7.  */
  8.  
  9. #include "packer.h"
  10.  
  11. int
  12. main ()
  13. {
  14.     int32 i;
  15.     char buffer[STRINGSIZE];
  16.  
  17.     printf("enter potential passwords, one per line...\n");
  18.  
  19.     while (fgets (buffer, STRINGSIZE, stdin))
  20.     {
  21.         char *val;
  22.  
  23.     Chop(buffer);
  24.  
  25.     val = FascistCheck(buffer, CRACKLIB_DICTPATH);
  26.  
  27.     if (!val)
  28.     {
  29.         val = "ok";
  30.     }    
  31.     printf ("%s: %s\n", buffer, val);
  32.     }
  33.  
  34.     return (0);
  35. }
  36.