Untitled

mail@pastecode.io avatar
unknown
plain_text
6 months ago
297 B
3
Indexable
Never
/*
 * b64.h
 * encode and decode binary data to/from base64 representation.
 */

#pragma once

#include <stdint.h>

bool
b64_encode(const uint8_t *data, size_t length, char *output, size_t outlen);

bool
b64_decode(const char *b64text, size_t textlen, uint8_t *output, size_t outlen);