Advertisement
H4T3D

LOCK BOX

Aug 21st, 2015
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.31 KB | None | 0 0
  1. /*
  2.  
  3. PROJECT : LOCK BOX
  4.  
  5. Makes a Personal Diary and Secret Hidden Folder which is Password Protected
  6.  
  7. Coded By : H4T3D
  8.  
  9. */
  10.  
  11.  
  12. #include<stdio.h>
  13. #include<iostream>
  14. #include <fstream>
  15. #include <windows.h>
  16. using namespace std;
  17. int main()
  18. {
  19.         cout << "\t\t***********Security Cleareance Required**************\t\t\t\t\t\n\n\n\n";
  20.        
  21.         cout << "Please Enter Password:";
  22.         char c[10];
  23.         cin >> c;
  24.        
  25.         system("CLS");
  26.        
  27.         if (!(strcmp(c,"ali")))
  28.         {
  29.                 system("mkdir MySecretfolder");
  30.                 system("attrib -h -s -r MySecretfolder");
  31.                
  32.                 system("color f0");
  33.                 cout<<"\t\tType .LOG for the time\n\n\n";
  34.                        
  35.        
  36.             system(" TIME [/T | time]");
  37.            
  38.          
  39.            
  40.                 system("copy con personal.txt");
  41.         system("attrib -h -s -r personal.txt");
  42.        
  43.  
  44.  
  45.         }
  46.         else
  47.         {
  48.                 MessageBox(HWND_DESKTOP, "You Have Enterd Wrong Password", "Error 503", MB_OK);
  49.                 system("attrib +h +s +r personal.txt");
  50.                 system("attrib +h +s +r MySecretfolder");
  51.                 system("timeout /t 10");
  52.             system("CLS");
  53.                 return main();
  54.         }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement