⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cryptit.c

📁 This project demonstrates the use of secure hash functions technique to implement a file encryption
💻 C
字号:

//  Implementation of Secure Hash Fuctions for File
//  Encryption and Decryption

#include<stdio.h>
#include<conio.h>
#include <dir.h>
#include<ctype.h>
#include<shapes.h>
// This is my own header file where definitions for many draw functions
// such as fillarea(),drawwindow() are present.
#include<password.h>
// This is where definition for getpassword() is there
#include<welcmscr.h>
// Definition of dispwelcome() is here

#include<mymenu.h>
// Definition of menu()
#include<filedets.h>
// Definition of showfile()
#include<encrypt.h>
// Definition of encrypt()
#include<decrypt.h>

#include<dos.h>
#include<time.h>
#include <fcntl.h>
#include <io.h>
#include<stdlib.h>
#include<filelist.h>
#include<viewfile.h>


void main()
{

   int choice;
   char* itmlist[]={" View Files ", " Encrypt Files "," Decrypt Files " ," About Project "," Exit "};

   strcpy(dirpath,"");
   strcpy(temppath,"");
   strcpy(tpath,"");
   strcpy(tfile,"");
   strcpy(tempfname,"");

   dispwelcome();

  do
  {
    if (chmod("init.exe", 1) != 0)
    {
      printf("\n\n\n\n\n\nUnable to run Initialization File. \nPlease check the presence of init.exe in the current directory!");
      getch();
      exit(1);
    }

    choice=menu(31,8,5,itmlist);
    switch(choice)
    {
       case(0):
       viewfiles();break;
     case(1):
       encrypt();break;
     case(2):
       decrypt(); break;
     case(3):
       showfile("aboutprj.txt");break;
     case(4):
       break;
    }
 }while(choice<4);

  dispwelcome();
  getch();
  textcolor(LIGHTGRAY);
  textbackground(BLACK);
  system("del *.tmp");
  clrscr();
  _setcursortype(_NORMALCURSOR);

}  // end of main.

////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -