mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
base64: implement encode()
This commit is contained in:
parent
fd07f13f2a
commit
9c3ccc182e
2 changed files with 73 additions and 2 deletions
5
base64.h
5
base64.h
|
|
@ -1,3 +1,8 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
char *base64_decode(const char *s);
|
||||
char *base64_encode(const uint8_t *data, size_t size);
|
||||
void base64_encode_final(const uint8_t *data, size_t size, char result[4]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue