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
This commit is contained in:
Václav Šmejkal 2022-10-12 19:58:05 +02:00
parent 344c9eb296
commit e43f0fe55c
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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