implemented decrypter

This commit is contained in:
Václav Šmejkal 2022-03-07 17:34:09 +01:00
parent 30c18b73ab
commit e6f6d3f221
2 changed files with 5 additions and 2 deletions

View File

@ -4,10 +4,10 @@ all: main
files = src/test/main.c files = src/test/main.c
# Source files # Source files
files += src/encrypter.c files += src/*.c
# Header files # Header files
files += include/encrypter.h files += include/*.h
main: main:
@echo Compiling... @echo Compiling...

View File

@ -1,12 +1,15 @@
#include <stdio.h> #include <stdio.h>
#include "../../include/encrypter.h" #include "../../include/encrypter.h"
#include "../../include/decrypter.h"
int int
main(int args, char * argv[]) main(int args, char * argv[])
{ {
char *text = encryptText("ENGO WAS HERE"); char *text = encryptText("ENGO WAS HERE");
text = decryptText(text, "someRandomKeyLulw");
printf("%s\n", text); printf("%s\n", text);
return 0; return 0;
} }