00001 /* 00002 base64.cpp and base64.h 00003 00004 Copyright (C) 2004-2008 René Nyffenegger 00005 00006 This source code is provided 'as-is', without any express or implied 00007 warranty. In no event will the author be held liable for any damages 00008 arising from the use of this software. 00009 00010 Permission is granted to anyone to use this software for any purpose, 00011 including commercial applications, and to alter it and redistribute it 00012 freely, subject to the following restrictions: 00013 00014 1. The origin of this source code must not be misrepresented; you must not 00015 claim that you wrote the original source code. If you use this source code 00016 in a product, an acknowledgment in the product documentation would be 00017 appreciated but is not required. 00018 00019 2. Altered source versions must be plainly marked as such, and must not be 00020 misrepresented as being the original source code. 00021 00022 3. This notice may not be removed or altered from any source distribution. 00023 00024 René Nyffenegger rene.nyffenegger@adp-gmbh.ch 00025 00026 */ 00027 #ifndef BASE_BASE64_H 00028 #define BASE_BASE64_H 00029 00030 00031 namespace Base 00032 { 00033 00034 std::string BaseExport base64_encode(unsigned char const* , unsigned int len); 00035 std::string BaseExport base64_decode(std::string const& s); 00036 00037 } 00038 00039 #endif