From d4d6dac694d17edcfdb09354eed278ac120c12c1 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Mon, 7 Mar 2022 17:20:50 +0100 Subject: [PATCH] created code for actual text encryption --- src/encrypter.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/encrypter.c b/src/encrypter.c index d14a45e..a52d969 100644 --- a/src/encrypter.c +++ b/src/encrypter.c @@ -62,6 +62,12 @@ encryptText(char *text) } } + //ACTUALLY ENCRYPT TEXT + for (int i = 0; i < strlen(text); i++) + { + textKeyChain[i] -= (int) text[i]; + } + numberBuffer = 0; //COUNT REQUIRED SIZE FOR returningText