base64.h
1/*
2base64.cpp and base64.h
3
4Copyright (C) 2004-2008 René Nyffenegger
5
6This source code is provided 'as-is', without any express or implied
7warranty. In no event will the author be held liable for any damages
8arising from the use of this software.
9
10Permission is granted to anyone to use this software for any purpose,
11including commercial applications, and to alter it and redistribute it
12freely, subject to the following restrictions:
13
141. The origin of this source code must not be misrepresented; you must not
15claim that you wrote the original source code. If you use this source code
16in a product, an acknowledgment in the product documentation would be
17appreciated but is not required.
18
192. Altered source versions must be plainly marked as such, and must not be
20misrepresented as being the original source code.
21
223. This notice may not be removed or altered from any source distribution.
23
24René Nyffenegger rene.nyffenegger@adp-gmbh.ch
25
26*/
27#include <string>
28
29std::string base64_encode(char const* , unsigned int len);
30std::string base64_decode(std::string const& s);

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.