Ethereum  PoC-8
The C++ Implementation of Ethereum
Base64.h
Go to the documentation of this file.
1 /*
2  base64.cpp and base64.h
3 
4  Copyright (C) 2004-2008 RenĂ© Nyffenegger
5 
6  This source code is provided 'as-is', without any express or implied
7  warranty. In no event will the author be held liable for any damages
8  arising from the use of this software.
9 
10  Permission is granted to anyone to use this software for any purpose,
11  including commercial applications, and to alter it and redistribute it
12  freely, subject to the following restrictions:
13 
14  1. The origin of this source code must not be misrepresented; you must not
15  claim that you wrote the original source code. If you use this source code
16  in a product, an acknowledgment in the product documentation would be
17  appreciated but is not required.
18 
19  2. Altered source versions must be plainly marked as such, and must not be
20  misrepresented as being the original source code.
21 
22  3. This notice may not be removed or altered from any source distribution.
23 
24  RenĂ© Nyffenegger rene.nyffenegger@adp-gmbh.ch
25 */
29 #pragma once
30 
31 #include <string>
32 #include "FixedHash.h"
33 
34 namespace dev
35 {
36 
37 std::string toBase64(bytesConstRef _in);
38 bytes fromBase64(std::string const& _in);
39 
40 }
dev::fromBase64
bytes fromBase64(std::string const &_in)
FixedHash.h
dev::bytes
std::vector< byte > bytes
Definition: Common.h:72
dev::bytesConstRef
vector_ref< byte const > bytesConstRef
Definition: Common.h:74
dev::toBase64
std::string toBase64(bytesConstRef _in)
Definition: Base64.cpp:49
dev
Definition: Address.cpp:21