Add test for challenge 1 (hex to base64)

This commit is contained in:
Dimitri Lozeve 2020-06-04 10:53:27 +02:00
parent 2fb3ea46fc
commit 067ad59444
4 changed files with 35 additions and 17 deletions

View file

@ -10,7 +10,7 @@ int main(int argc, char *argv[argc + 1]) {
unsigned char buf[512] = {0};
size_t len = hex_to_bytes(buf, argv[1]);
unsigned char out[512] = {'\0'};
char out[512] = {'\0'};
bytes_to_base64(out, buf, len);
printf("%s\n", out);