diff options
| author | Benedict <benedict@0xb8000.de> | 2016-03-03 21:49:01 +0100 |
|---|---|---|
| committer | Benedict <benedict@0xb8000.de> | 2017-02-21 13:00:24 +0100 |
| commit | bd7b98c2aac8fdfd128aff832c663d60d3374d63 (patch) | |
| tree | 45b71ac2935cbf9f64e6e892b912868990af7c75 /lib.h | |
| parent | 383732972f4c00dce231f61ac7375ae212e0d9c7 (diff) | |
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.
Diffstat (limited to 'lib.h')
| -rw-r--r-- | lib.h | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +#ifndef __CRYPTO_LIB__ +#define __CRYPTO_LIB__ + + +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <ctype.h> + + +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__ */ |
