home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V7 / usr / src / cmd / makekey.c < prev    next >
Encoding:
C/C++ Source or Header  |  1979-01-10  |  282 b   |  20 lines

  1. /*
  2.  * You send it 10 bytes.
  3.  * It sends you 13 bytes.
  4.  * The transformation is expensive to perform
  5.  * (a significant part of a second).
  6.  */
  7.  
  8. char    *crypt();
  9.  
  10. main()
  11. {
  12.     char key[8];
  13.     char salt[2];
  14.     
  15.     read(0, key, 8);
  16.     read(0, salt, 2);
  17.     write(1, crypt(key, salt), 13);
  18.     return(0);
  19. }
  20.