ATLAS Offline Software
base64.h
Go to the documentation of this file.
1 /*
2  base64.cpp and base64.h
3  base64 encoding and decoding with C++.
4 
5  Original: (C) 2004-2017 Rene Nyffenegger
6  Adapted by: Michal Lihocky (https://stackoverflow.com/a/13935718/8372556)
7  further adapted by: Constantin Heidegger
8 
9  ---------
10 
11  base64.cpp and base64.h
12 
13  base64 encoding and decoding with C++.
14 
15  Version: 1.01.00
16 
17  Copyright (C) 2004-2017 Rene Nyffenegger
18 
19  This source code is provided 'as-is', without any express or implied
20  warranty. In no event will the author be held liable for any damages
21  arising from the use of this software.
22 
23  Permission is granted to anyone to use this software for any purpose,
24  including commercial applications, and to alter it and redistribute it
25  freely, subject to the following restrictions:
26 
27  1. The origin of this source code must not be misrepresented; you must not
28  claim that you wrote the original source code. If you use this source code
29  in a product, an acknowledgment in the product documentation would be
30  appreciated but is not required.
31 
32  2. Altered source versions must be plainly marked as such, and must not be
33  misrepresented as being the original source code.
34 
35  3. This notice may not be removed or altered from any source distribution.
36 
37  Rene Nyffenegger rene.nyffenegger@adp-gmbh.ch
38 
39 */
40 
41 #ifndef BASE64_H
42 #define BASE64_H
43 
44 #include <string>
45 #include <vector>
46 
47 namespace CxxUtils {
48 
49  std::string base64_encode(const unsigned char*, unsigned int);
50  std::vector<unsigned char> base64_decode(const std::string&);
51 
52 }
53 
54 #endif /* BASE64_H_C0CE2A47_D10E_42C9_A27C_C883944E704A */
CxxUtils::base64_decode
std::vector< unsigned char > base64_decode(const std::string &)
Definition: base64.cxx:97
CxxUtils
Definition: aligned_vector.h:29
CxxUtils::base64_encode
std::string base64_encode(const unsigned char *, unsigned int)
Definition: base64.cxx:55