blob: b8d50d065ec1b3b7d8519e6bd061305141c7804c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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__ */
|