created encryptionOperation function

see next commit for context
This commit is contained in:
Václav Šmejkal 2022-10-16 19:42:25 +02:00
parent a40f9637f0
commit 178df23585
No known key found for this signature in database
GPG Key ID: FD749A97DF2D5E19
2 changed files with 10 additions and 0 deletions

View File

@ -64,4 +64,7 @@ void setEncryptionSeparator(char encryptionSeparatorNew);
void setKeyLength(int keyLengthNew);
void setFlags(inputFlags newFlags); //.... whatcha think?
//RANDOM SHIT THAT DOESN'T FIT IN MISC, SO I PUT IN HERE
int encryptionOperation(int text, int encryptedText);
#endif

View File

@ -64,4 +64,11 @@ void setKeyLength(int keyLengthNew)
void setFlags(inputFlags newFlags)
{
flags = newFlags;
}
//THAT COMMENT AFTER 'SETTERS'
int encryptionOperation(int text, int encryptedText)
{
//CHANGE THE '-' (MINUS) OPERATOR TO SOMETHING YOU WANT TO USE I GUESS
return text - encryptedText;
}