From bd7b98c2aac8fdfd128aff832c663d60d3374d63 Mon Sep 17 00:00:00 2001 From: Benedict Date: Thu, 3 Mar 2016 21:49:01 +0100 Subject: reorgantzied code into libaray file For every task you may create a new file and implenet the task there by using functions from the lib.c file. Added Makefile for the different tasks. --- lib.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib.h (limited to 'lib.h') diff --git a/lib.h b/lib.h new file mode 100644 index 0000000..b8d50d0 --- /dev/null +++ b/lib.h @@ -0,0 +1,22 @@ +#ifndef __CRYPTO_LIB__ +#define __CRYPTO_LIB__ + + +#include +#include +#include +#include + + +void xor_string(char *str1, char *key, char *result); +void hex_binary_to_string(char *str1, char *result, int length); +int decode_hex_string(char *encode, char* result); +int encode_to_base64(char *encode, char *result); +void decode_base64(char *string1, char *result); +int print_base64_string(char *string); +int hamming_distance_equal_length(char *string1, char *string2); +int brute_force_single_byte_xor(char *string, int length, char *keys); + + + +#endif /* __CYRPTO_LIB__ */ -- cgit v1.2.3-70-g09d2