Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2. #define INVALID_ARG "Invalid arguments! Use the help: -h!\n"
  3. #define KEY_RECORD_IN_FILE "The key is recorded in file: %s\n"
  4. #define INCORRECT_FILE "Error! Incorrect file:'%s'\n"
  5. #define NO_KEY_OR_KEYFILE "No key or key file!\n"
  6. #define INVALID_KEY_FORMAT "Invalid key format!\n"
  7. #define FILE_NOT_FOUND "File '%s' not found!\n"
  8. #define DATA_DECRYPT "Data from file: %s successfully DECRYPTED to file: %s\n"
  9. #define DATA_ENCRYPT "Data from file: %s successfully ENCRYPTED to file: %s\n"
  10. #define FILE_DECRYPTION "File decryption...\n"
  11. #define FILE_ENCRYPTION "File encryption...\n"
  12. #define RECORD_DECRYPT_DATA "Record decryped data...\n"
  13. #define LOAD_IN_RAM "Loading a '%s' file in RAM...\n"
  14. #define RECORD_ENCRYPT_DATA "Record encryped data...\n"
  15. #define MEMORY_ERROR "To big file, not enough memory! Use normal mode."
  16.  
  17. void show_help()
  18. {
  19.     puts("Usage: \nTEAtool [infile] [outfile] [arguments]\n");
  20.     puts("Arguments:");
  21.     puts("-e [mode] Encrypt file in 'speed' or 'normal' mode.");  
  22.     puts("-d [mode] Decrypt file in 'speed' or 'normal' mode.");  
  23.     puts("   In 'speed' mode, file is entirely loaded into RAM.");
  24.     puts("   In 'normal' mode, file is loaded with parts in RAM.");  
  25.     puts("-k [key]  128bit-key in hex format.");
  26.     puts("-K [keyfile]  Use key from file.");
  27.     puts("-r [key] [keyfile].key  Key entry to key file.");
  28.     puts("-h This reference");
  29.     puts("-a About the program \n");
  30. }
  31.  
  32. void show_about()
  33. {
  34.     puts("\n");
  35.     puts("-----------TEAtool-ENG-----------\n");
  36.     printf("      )  (        Version:     \n");
  37.     printf("     (   ) )     1.8-stable    \n");
  38.     printf("      ) ( (                    \n");
  39.     printf("    _______)_     Author:      \n");
  40.     printf(" .-'---------|  turbocat2001   \n");
  41.     printf("( C|/////////|                 \n");
  42.     printf(" '-./////////| Tester: rgimad  \n");
  43.     printf("   '_________'                 \n");
  44.     printf("   '-------''  License: GPLv3  \n\n");
  45.     printf("          Powered by:          \n");
  46.     printf("  Tiny Encryption Algorithm. \n\n");
  47. }
  48.  
  49.  
  50.