Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
base64.hpp
Go to the documentation of this file.
1#pragma once
2#include <string>
3
4namespace fc {
5std::string base64_encode(unsigned char const* bytes_to_encode, unsigned int in_len);
6inline std::string base64_encode(char const* bytes_to_encode, unsigned int in_len) { return base64_encode( (unsigned char const*)bytes_to_encode, in_len); }
7std::string base64_encode( const std::string& enc );
8std::string base64_decode( const std::string& encoded_string);
9
10std::string base64url_encode(unsigned char const* bytes_to_encode, unsigned int in_len);
11inline std::string base64url_encode(char const* bytes_to_encode, unsigned int in_len) { return base64url_encode( (unsigned char const*)bytes_to_encode, in_len); }
12std::string base64url_encode( const std::string& enc );
13std::string base64url_decode( const std::string& encoded_string);
14} // namespace fc
namespace sysio::chain
Definition authority.cpp:3
std::string base64_encode(unsigned char const *bytes_to_encode, unsigned int in_len)
Definition base64.cpp:92
std::string base64url_encode(unsigned char const *bytes_to_encode, unsigned int in_len)
Definition base64.cpp:101
std::string base64url_decode(const std::string &encoded_string)
Definition base64.cpp:156
std::string base64_decode(const std::string &encoded_string)
Definition base64.cpp:152
size_t in_len