This commit is contained in:
2024-07-20 13:13:27 +03:00
commit 624a774bb1
4 changed files with 251 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#include <stdlib.h>
#include <stdio.h>
int rensa_encrypt(const char *plain, size_t len, const char *key, char zeroth_char, char *cipher);
int rensa_decrypt(const char *cipher, size_t len, const char *key, char zeroth_char, char *plain);
int rensa_fencrypt(FILE *input, FILE *output, FILE *key, size_t key_shift, char zeroth_char);
int rensa_fdecrypt(FILE *input, FILE *output, FILE *key, size_t key_shift, char zeroth_char);