MLIB
Loading...
Searching...
No Matches
base64.h
Go to the documentation of this file.
1/*
2 Copyright (c) Mircea Neacsu (2014-2025) Licensed under MIT License.
3 This file is part of MLIB project. See LICENSE file for full license terms.
4*/
5
7#pragma once
8
9#if __has_include("defs.h")
10#include "defs.h"
11#endif
12
13#include <string>
14
15namespace mlib {
16
17size_t base64dec (const char* in, void* out);
18size_t base64enc (const void* in, char* out, size_t ilen);
19
20std::string base64enc (const std::string& in);
21std::string base64dec (const std::string& in);
22
23}; // namespace mlib
size_t base64enc(const void *in, char *out, size_t ilen)
Encode input bytes to Base64 producing a null-terminated string.
Definition base64.cpp:125
size_t base64dec(const char *in, void *out)
Decode a Base64 string.
Definition base64.cpp:31