From 3ef929665a67b50ffbdddbbe61290ddb2266b37f Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Fri, 23 Feb 2024 20:32:36 +0100 Subject: [PATCH] added WHY2_OUTPUT_FORMAT enum to why2_input_flags you can basically specify if you want the "69.-420" output or you want messy string where each character is one output number iykwim --- include/flags.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/flags.h b/include/flags.h index cd854cd..4a1e636 100644 --- a/include/flags.h +++ b/include/flags.h @@ -42,6 +42,12 @@ enum WHY2_TEXT_KEY_CHAIN_VERSIONS WHY2_v3 //THIRD VERSION. THE LATEST ONE }; +enum WHY2_OUTPUT_FORMAT +{ + WHY2_OUTPUT_TEXT, + WHY2_OUTPUT_BYTE +}; + #define WHY2_VERSION "v5.0" //WHY2_VERSION OF CURRENT BUILD > DO NOT TOUCH THIS < #define WHY2_VERSIONS_URL "https://raw.githubusercontent.com/ENGO150/WHY2/release/versions.json" //URL FOR GETTING versions.json #define WHY2_VERSIONS_NAME "/tmp/why2-versions.json" //do I have to explain this? @@ -71,6 +77,7 @@ typedef struct why2_bool no_output; //BOOLEAN FOR NOT PRINTING OUTPUT WHEN ENCRYPTING/DECRYPTING why2_bool update; //BOOLEAN FOR UPDATING YOUR WHY WHY2_VERSION IF OLD IS USED enum WHY2_TEXT_KEY_CHAIN_VERSIONS version; //VERSION OF tkch + enum WHY2_OUTPUT_FORMAT format; //VERSION OF tkch } why2_input_flags; typedef struct