BitShares-Core  7.0.2
BitShares blockchain node software and command-line wallet software
base64.hpp
Go to the documentation of this file.
1 #pragma once
2 #include <string>
3 
4 namespace fc {
5 std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_len);
6 inline std::string base64_encode(char const* bytes_to_encode, unsigned int in_len) { return base64_encode( (unsigned char const*)bytes_to_encode, in_len); }
7 std::string base64_encode( const std::string& enc );
8 std::string base64_decode( const std::string& encoded_string);
9 } // namespace fc
fc
Definition: api.hpp:15
fc::base64_encode
std::string base64_encode(unsigned char const *bytes_to_encode, unsigned int in_len)
Definition: base64.cpp:51
fc::base64_decode
std::string base64_decode(const std::string &encoded_string)
Definition: base64.cpp:96