Cryptographic hashing.
Enumerations | |
enum class | Pad { kWith , kWithout } |
Functions | |
std::string | Base64Encode (std::string_view data, Pad pad=Pad::kWith) |
Encodes data to Base64, add padding by default. | |
std::string | Base64Decode (std::string_view data) |
Decodes data from Base64. | |
std::string | Base64UrlEncode (std::string_view data, Pad pad=Pad::kWith) |
Encodes data to Base64 (using URL alphabet), add padding by default. | |
std::string | Base64UrlDecode (std::string_view data) |
Decodes data from Base64 (using URL alphabet) | |
|
strong |
Definition at line 14 of file base64.hpp.
std::string crypto::base64::Base64Decode | ( | std::string_view | data | ) |
Decodes data from Base64.
CryptoException | internal library exception |
std::string crypto::base64::Base64Encode | ( | std::string_view | data, |
Pad | pad = Pad::kWith ) |
Encodes data to Base64, add padding by default.
pad | controls if pad should be added or not |
CryptoException | internal library exception |
std::string crypto::base64::Base64UrlDecode | ( | std::string_view | data | ) |
Decodes data from Base64 (using URL alphabet)
CryptoException | internal library exception |
std::string crypto::base64::Base64UrlEncode | ( | std::string_view | data, |
Pad | pad = Pad::kWith ) |
Encodes data to Base64 (using URL alphabet), add padding by default.
pad | controls if pad should be added or not |
CryptoException | internal library exception |