roar
Loading...
Searching...
No Matches
Namespaces | Functions
base64.cpp File Reference
#include <roar/utility/base64.hpp>
#include <boost/beast/core/detail/base64.hpp>
#include <boost/beast/core/detail/string.hpp>
#include <algorithm>
Include dependency graph for base64.cpp:

Namespaces

namespace  Roar
 

Functions

std::string Roar::base64Encode (std::vector< unsigned char > const &data)
 Encode vector in base64.
 
std::string Roar::base64Encode (std::string const &str)
 Encode string in base64.
 
std::string Roar::base64Decode (std::string const &base64String)
 Decode base64 to string.
 
std::string Roar::base64Decode (std::string_view base64String)
 Decode base64 to string.
 
std::string Roar::base64UrlEncode (std::vector< unsigned char > const &data, bool includePadding=false)
 encodes data using base64url algorithm, which is similar to base64, but uses - and _ instead of + and /.
 
std::vector< unsigned charRoar::base64UrlDecode (std::string_view const &base64String)
 Reverses the base64url encoding.