#ifndef WHY2_FLAGS_H #define WHY2_FLAGS_H //CONSTS #define ENCRYPTION_SEPARATOR '.' //SEPARATOR BETWEEN KEYS #define ENCRYPTION_SEPARATOR_STRING "." //SAME AS ENCRYPTION_SEPARATOR BUT AS STRING #define INVALID_KEY 1 //EXIT VALUE FOR INVALID KEY #define INVALID_TEXT 4 //EXIT VALUE FOR INVALID TEXT #define DOWNLOAD_FAILED 2 //EXIT VALUE FOR versions.json DOWNLOAD FAILED #define UPDATE_FAILED 3 //EXIT VALUE FOR UPDATE FAILED #define VERSION "v4.2" //VERSION OF CURRENT BUILD > DO NOT TOUCH THIS < #define VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/release/versions.json" //URL FOR GETTING versions.json #define VERSIONS_NAME "/tmp/why2-versions.json" //do I have to explain this? #define UPDATE_URL "https://github.com/ENGO150/WHY2.git" // REPOSITORY URL FOR UPDATES (YOU DON'T SAY) #define UPDATE_NAME "/tmp/why2-update" // fuck you #define UPDATE_COMMAND "tmux new-session -d \"cd {DIR} && make install\"" #define TEST_TEXT "aAzZ( )!?#\\/śŠ <3|420*;" //TEST TEXT FOR ENCRYPTION IN why2-test BINARY #define TEXT_TO_ENCRYPT "Some text yk" //THIS TEXT WILL BE ENCRYPTED IN why2-app BINARY #define CLEAR_SCREEN "\e[1;1H\e[2J" //TEXT FOR UNIX CLEAR SCREEN #define NOT_FOUND_TRIES 10 //NUMBER OF TRIES FOR DOWNLOADING versions.json #define DEPRECATED __attribute__((deprecated)) //SAME COMMENT AS VERSIONS_NAME'S typedef struct { unsigned char noCheck; //BOOLEAN FOR SKIPPING VERSION CHECK unsigned char noOutput; //BOOLEAN FOR NOT PRINTING OUTPUT WHEN ENCRYPTING/DECRYPTING unsigned char noUpdate; //BOOLEAN FOR NOT UPDATING YOUR WHY VERSION IF OLD IS USED } inputFlags; typedef struct { char *outputText; //VARIABLE FOR ENCRYPTED/DECRYPTED TEXT char *usedKey; //VARIABLE FOR USED/GENERATED KEY unsigned long unusedKeySize; //VARIABLE FOR COUNT OF UNUSED CHARACTERS IN KEY unsigned long elapsedTime; //VARIABLE FOR ELAPSED TIME IN MICROSECONDS => 1s = 1000000µs } outputFlags; //VARIABLES static unsigned long keyLength = 50; //LENGTH OF KEY > DO NOT TOUCH THIS, USE setKeyLength() instead < //GETTERS unsigned long getKeyLength(); inputFlags noFlags(); //THIS GENERATES inputFlags WITH DEFAULT VALUES //SETTERS void setKeyLength(int keyLengthNew); #endif