2022-05-04 18:28:15 +02:00
|
|
|
#include <stdio.h>
|
2022-05-04 19:13:45 +02:00
|
|
|
#include <stdlib.h>
|
2022-05-04 18:28:15 +02:00
|
|
|
|
2022-05-04 18:58:51 +02:00
|
|
|
#include <why2/encrypter.h>
|
|
|
|
#include <why2/flags.h>
|
|
|
|
|
2022-05-04 18:28:15 +02:00
|
|
|
int main(void)
|
|
|
|
{
|
2022-05-04 18:58:51 +02:00
|
|
|
setNoOutput(1);
|
2022-05-04 19:50:57 +02:00
|
|
|
setSkipCheck(1);
|
|
|
|
|
2022-05-04 19:13:45 +02:00
|
|
|
char *encryptedText = encryptText(TEXT_TO_ENCRYPT, NULL);
|
2022-05-04 18:58:51 +02:00
|
|
|
|
|
|
|
printf
|
|
|
|
(
|
|
|
|
"Hi.\n"
|
|
|
|
"This is an simple application written using WHY2 Encryption System.\n\n"
|
|
|
|
|
|
|
|
"\"%s\" => \"%s\"\n\n"
|
|
|
|
|
|
|
|
"If you'd like to know more about WHY2 Encryption System, please visit: https://github.com/ENGO150/WHY2/wiki \n"
|
|
|
|
"Thank you so much for supporting this project!\n"
|
|
|
|
|
2022-05-04 19:13:45 +02:00
|
|
|
, TEXT_TO_ENCRYPT, encryptedText
|
2022-05-04 18:58:51 +02:00
|
|
|
);
|
|
|
|
|
2022-05-04 19:13:45 +02:00
|
|
|
free(encryptedText);
|
2022-05-04 18:28:15 +02:00
|
|
|
return 0;
|
|
|
|
}
|