├── README.md ├── key ├── key.cpp ├── key.exe └── lib ├── banner.h ├── dec.h └── enc.h /README.md: -------------------------------------------------------------------------------- 1 | ## vector2 2 | Encrypt and Decrypt 3 | ## PreView 4 | we Have Two PreView in windows and linux / Mac 5 | 6 | ## Operating Systems Tested 7 | - Windows 10 8 | - Ubuntu 20.04 9 | - # Install 10 | ```bash 11 | git clone https://github.com/nimacpp/vector2.git 12 | cd vector2 13 | g++ -std=c++17 key.cpp key 14 | ./key 15 | ``` 16 | #complie File 17 | -> for windows key.exe file 18 | -> for linux key file 19 | ### Contact us 20 | - mail to me : nima.cpp@outlook.com 21 | - twitter : Mr__ruby 22 | 23 | -------------------------------------------------------------------------------- /key: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimacpp/vector2/dd32c54151fcda1f54a49c11b0064fead933a9e8/key -------------------------------------------------------------------------------- /key.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "lib/enc.h" 4 | #include "lib/dec.h" 5 | #include "lib/banner.h" 6 | 7 | #if defined(__linux__) // any linux distribution 8 | #define CLS "clear" 9 | #elif defined(_WIN32) // any windows system 10 | #define CLS "cls" 11 | #else 12 | #define CLS "clear" 13 | #endif 14 | 15 | using namespace std; 16 | 17 | int main() { 18 | system(CLS); 19 | int i, input; 20 | string str; 21 | cout<> input; 31 | switch(input) { 32 | 33 | case 1: 34 | system(CLS); 35 | cout<> ws,str); 39 | for(i = 0; (i < 100 && str[i] != '\0'); i++) 40 | str[i] = str[i] + 2; 41 | 42 | cout << "\e[31m\n[+] Encrypted string: \e[0m" << str << endl; 43 | break; 44 | 45 | case 2: 46 | system(CLS); 47 | cout<> ws ,str); 51 | for(i = 0; (i < 100 && str[i] != '\0'); i++) 52 | str[i] = str[i] - 2; 53 | 54 | cout << "\e[31m\nDecrypted string: \e[0m" << str << endl; 55 | break; 56 | case 3: 57 | system(CLS); 58 | cout< 2 | #include 3 | #include 4 | #include 5 | 6 | using std::filesystem::current_path; 7 | using namespace std; 8 | string pwd() { 9 | char tmp[256]; 10 | getcwd(tmp, 256); 11 | return tmp; 12 | } 13 | #if defined(__linux__) // any linux distribution 14 | const char *banner = 15 | "\e[32m \n" 16 | " █████ ████████ \n" 17 | " ░░███ ███░░░░███\n" 18 | " █████ █████ ██████ ██████ ███████ ██████ ████████ ░░░ ░███\n" 19 | "░░███ ░░███ ███░░███ ███░░███░░░███░ ███░░███░░███░░███ ███████ \n" 20 | " ░███ ░███ ░███████ ░███ ░░░ ░███ ░███ ░███ ░███ ░░░ ███░░░░ \n" 21 | " ░░███ ███ ░███░░░ ░███ ███ ░███ ███░███ ░███ ░███ ███ █\n" 22 | " ░░█████ ░░██████ ░░██████ ░░█████ ░░██████ █████ ░██████████\n" 23 | " ░░░░░ ░░░░░░ ░░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░░░░░░ \n"; 24 | 25 | string ask(string text){ 26 | return " ┌─[\e[31mVector2\e[35m~ #"+text+"\e[0m] \n └╼ 卐 "; 27 | } 28 | 29 | #elif defined(_WIN32) // any windows system 30 | const char *banner = 31 | "\e[32m \n" 32 | " __ __ _______ _______ _______ _______ ______ _______ \n" 33 | "| | | || || || || || _ | | |\n" 34 | "| |_| || ___|| ||_ _|| _ || | || |____ |\n" 35 | "| || |___ | | | | | | | || |_||_ ____| |\n" 36 | "| || ___|| _| | | | |_| || __ | | ______|\n" 37 | " | | | |___ | |_ | | | || | | | | |_____ \n" 38 | " |___| |_______||_______| |___| |_______||___| |_| |_______|\n"; 39 | string ask(string text){ 40 | return "< \e[31mVector2\e[35m~ #"+text+"\e[0m > \n >>> "; 41 | } 42 | #else 43 | const char *banner = 44 | "\e[32m \n" 45 | " █████ ████████ \n" 46 | " ░░███ ███░░░░███\n" 47 | " █████ █████ ██████ ██████ ███████ ██████ ████████ ░░░ ░███\n" 48 | "░░███ ░░███ ███░░███ ███░░███░░░███░ ███░░███░░███░░███ ███████ \n" 49 | " ░███ ░███ ░███████ ░███ ░░░ ░███ ░███ ░███ ░███ ░░░ ███░░░░ \n" 50 | " ░░███ ███ ░███░░░ ░███ ███ ░███ ███░███ ░███ ░███ ███ █\n" 51 | " ░░█████ ░░██████ ░░██████ ░░█████ ░░██████ █████ ░██████████\n" 52 | " ░░░░░ ░░░░░░ ░░░░░░ ░░░░░ ░░░░░░ ░░░░░ ░░░░░░░░░░ \n"; 53 | string ask(string text){ 54 | return " ┌─[\e[31mVector2\e[35m~ #"+text+"\e[0m] \n └╼ 卐 "; 55 | } 56 | #endif 57 | 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /lib/dec.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | using namespace std; 6 | 7 | vector file2; 8 | vector encrypt2; 9 | 10 | 11 | class vector2{ 12 | int i; 13 | string dec(string str){ 14 | for(i = 0; (i < 100 && str[i] != '\0'); i++) 15 | str[i] = str[i] - 2; 16 | return str; 17 | } 18 | public: 19 | bool center2(){ 20 | string fname; 21 | cin >> fname; 22 | ifstream files(fname.c_str()); 23 | if(!files) { 24 | cout<<"\e[31m [-] Sory I can't fined your file ... \e[0m"< 2 | #include 3 | #include 4 | using namespace std; 5 | 6 | vector file; 7 | vector encrypt; 8 | 9 | int i; 10 | class vector1{ 11 | 12 | string enc(string str){ 13 | for(i = 0; (i < 100 && str[i] != '\0'); i++) 14 | str[i] = str[i] + 2; 15 | return str; 16 | } 17 | public: 18 | bool center(){ 19 | string fname; 20 | cin >> fname; 21 | ifstream files(fname.c_str()); 22 | if(!files) { 23 | cout<<"\e[31m [-] Sory I can't fined your file ... \e[0m"<