Compare commits
1 Commits
stable
...
xor_encryp
Author | SHA1 | Date | |
---|---|---|---|
e43f0fe55c |
@ -109,7 +109,7 @@ outputFlags decryptText(char *text, char *keyNew)
|
|||||||
//DECRYPT TEXT
|
//DECRYPT TEXT
|
||||||
for (int i = 0; i < textKeyChainLength; i++)
|
for (int i = 0; i < textKeyChainLength; i++)
|
||||||
{
|
{
|
||||||
textKeyChain[i] -= encryptedTextKeyChain[i];
|
textKeyChain[i] ^= encryptedTextKeyChain[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
//FIX (CLEAN) returningText
|
//FIX (CLEAN) returningText
|
||||||
|
@ -90,7 +90,7 @@ outputFlags encryptText(char *text, char *keyNew)
|
|||||||
//ACTUALLY ENCRYPT TEXT
|
//ACTUALLY ENCRYPT TEXT
|
||||||
for (int i = 0; i < (int) strlen(text); i++)
|
for (int i = 0; i < (int) strlen(text); i++)
|
||||||
{
|
{
|
||||||
textKeyChain[i] -= (int) text[i];
|
textKeyChain[i] ^= (int) text[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
//COUNT REQUIRED SIZE FOR returningText
|
//COUNT REQUIRED SIZE FOR returningText
|
||||||
|
Loading…
x
Reference in New Issue
Block a user