Minetest 5.9.0-dev
 
Loading...
Searching...
No Matches
base64.h
Go to the documentation of this file.
1/*
2base64.cpp and base64.h
3
4Copyright (C) 2004-2008 René Nyffenegger
5Minor modifications by the Minetest Contributors.
6
7This source code is provided 'as-is', without any express or implied
8warranty. In no event will the author be held liable for any damages
9arising from the use of this software.
10
11Permission is granted to anyone to use this software for any purpose,
12including commercial applications, and to alter it and redistribute it
13freely, subject to the following restrictions:
14
151. The origin of this source code must not be misrepresented; you must not
16 claim that you wrote the original source code. If you use this source code
17 in a product, an acknowledgment in the product documentation would be
18 appreciated but is not required.
19
202. Altered source versions must be plainly marked as such, and must not be
21 misrepresented as being the original source code.
22
233. This notice may not be removed or altered from any source distribution.
24
25René Nyffenegger rene.nyffenegger@adp-gmbh.ch
26
27*/
28
29#pragma once
30
31#include <string>
32#include <string_view>
33
34bool base64_is_valid(std::string_view s);
35std::string base64_encode(std::string_view s);
36std::string base64_decode(std::string_view s);
std::string base64_decode(std::string_view s)
Definition: base64.cpp:121
bool base64_is_valid(std::string_view s)
Definition: base64.cpp:48
std::string base64_encode(std::string_view s)
Definition: base64.cpp:72