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