From e43f0fe55cd79b260d9a804ff72f3b5baf08130b Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 12 Oct 2022 19:58:05 +0200 Subject: [PATCH] changed encryption style to xor instead of minus [WARNING] This is just test, I recommend using default (stable) branch... But ofc you don't have to listen to me lmao --- src/lib/decrypter.c | 2 +- src/lib/encrypter.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/decrypter.c b/src/lib/decrypter.c index 96fc09a..31aa060 100644 --- a/src/lib/decrypter.c +++ b/src/lib/decrypter.c @@ -109,7 +109,7 @@ outputFlags decryptText(char *text, char *keyNew) //DECRYPT TEXT for (int i = 0; i < textKeyChainLength; i++) { - textKeyChain[i] -= encryptedTextKeyChain[i]; + textKeyChain[i] ^= encryptedTextKeyChain[i]; } //FIX (CLEAN) returningText diff --git a/src/lib/encrypter.c b/src/lib/encrypter.c index f1289c9..5eded4f 100644 --- a/src/lib/encrypter.c +++ b/src/lib/encrypter.c @@ -90,7 +90,7 @@ outputFlags encryptText(char *text, char *keyNew) //ACTUALLY ENCRYPT TEXT for (int i = 0; i < (int) strlen(text); i++) { - textKeyChain[i] -= (int) text[i]; + textKeyChain[i] ^= (int) text[i]; } //COUNT REQUIRED SIZE FOR returningText