diff options
| author | Benedict <benedict@0xb8000.de> | 2017-02-21 12:59:34 +0100 |
|---|---|---|
| committer | Benedict <benedict@0xb8000.de> | 2017-02-21 13:00:25 +0100 |
| commit | 2930ba4f32680e245c1dae66197153abdf6502a6 (patch) | |
| tree | 996ab8ec48bae9ef87abb6bdd994d9dadc2b564f /lib/lib.h | |
| parent | ddce9b2d44ab48fc566870c5155b39c8fc06f24d (diff) | |
added lib to git and moved set2 to subdir
Diffstat (limited to 'lib/lib.h')
| -rw-r--r-- | lib/lib.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h new file mode 100644 index 0000000..3e2a309 --- /dev/null +++ b/lib/lib.h @@ -0,0 +1,27 @@ +#ifndef __CRYPTO_LIB__ +#define __CRYPTO_LIB__ + + +#include <stdio.h> +#include <string.h> +#include <stdlib.h> +#include <ctype.h> + +struct key_and_freq { + char key; + int hits; +}; + +void print_char_bit(char); +void xor_string(char *str1, char *key, char *result, int length_key, int length_str1); +void hex_binary_to_string(char *str1, char *result, int length); +int decode_hex_string(char *encode, char* result); +void encode_to_base64(char *encode, char *result); +int decode_base64(char *string1, char *result); +void print_base64_string(char *string); +int hamming_distance_equal_length(char *string1, char *string2, int length); +char brute_force_single_byte_xor(char *string, int length, struct key_and_freq *tmp); +int isprintable(char *string, int length); + + +#endif /* __CYRPTO_LIB__ */ |
