home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / crypt / diverse / sample.c < prev    next >
Encoding:
C/C++ Source or Header  |  1986-09-10  |  607 b   |  22 lines

  1. /********************************************************************
  2. * Sample source code for file to be encrypted
  3. *
  4. * You should compile and link before encrypting
  5. *
  6. * Then enter "ENCRYPT sample.dat sample.exe sample2.exe"
  7. *
  8. *
  9. * You will get a new executable (sample2) which should run properly,
  10. * but will contain encrypted text.
  11. *********************************************************************/
  12.  
  13. #include <stdio.h> 
  14. #include "decrypt.h"
  15.  
  16. main()
  17. {
  18.     puts(decrypt("This is an encrypted line."));
  19.     puts("This line is not encrypted.");
  20.     puts(decrypt("This line is encrypted."));
  21. }
  22.