2022-05-04 18:28:15 +02:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2022-05-12 17:12:33 +02:00
|
|
|
#include <why2.h>
|
2022-05-04 18:58:51 +02:00
|
|
|
|
2022-05-04 18:28:15 +02:00
|
|
|
int main(void)
|
|
|
|
{
|
2022-07-10 18:17:42 +02:00
|
|
|
//SET FLAGS
|
|
|
|
setFlags((inputFlags) {1, 1, 0});
|
|
|
|
|
2022-05-27 18:01:13 +02:00
|
|
|
//RUN ENCRYPTION WITH TEXT_TO_ENCRYPT, GENERATE NEW KEY AND DO NOT CHECK FOR ACTIVE VERSION & PREVENT ANY OUTPUT
|
2022-07-10 18:17:42 +02:00
|
|
|
outputFlags encryptedText = encryptText(TEXT_TO_ENCRYPT, NULL);
|
2022-05-04 18:58:51 +02:00
|
|
|
|
2022-05-26 18:52:24 +02:00
|
|
|
//SIMPLE TEXT
|
2022-05-04 18:58:51 +02:00
|
|
|
printf
|
|
|
|
(
|
|
|
|
"Hi.\n"
|
2022-07-14 17:43:35 +02:00
|
|
|
"This is a simple application written using WHY2 Encryption System.\n\n"
|
2022-05-04 18:58:51 +02:00
|
|
|
|
|
|
|
"\"%s\" => \"%s\"\n\n"
|
|
|
|
|
2022-05-31 18:58:09 +02:00
|
|
|
"If you'd like to know more about WHY2 Encryption System, please visit: https://github.com/ENGO150/WHY2/wiki \b\n"
|
2022-05-04 18:58:51 +02:00
|
|
|
"Thank you so much for supporting this project!\n"
|
|
|
|
|
2022-05-06 17:43:00 +02:00
|
|
|
, TEXT_TO_ENCRYPT, encryptedText.outputText
|
2022-05-04 18:58:51 +02:00
|
|
|
);
|
|
|
|
|
2022-05-08 19:56:16 +02:00
|
|
|
//DEALLOCATION
|
|
|
|
deallocateOutput(encryptedText);
|
|
|
|
|
2022-05-04 18:28:15 +02:00
|
|
|
return 0;
|
|
|
|
}
|