roar
Loading...
Searching...
No Matches
Namespaces | Functions
base64.hpp File Reference
#include <string>
#include <vector>
Include dependency graph for base64.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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.