Add test for challenge 1 (hex to base64)
This commit is contained in:
parent
2fb3ea46fc
commit
067ad59444
4 changed files with 35 additions and 17 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue