Cryptographic hashing.
More...
|
enum class | Pad {
kWith
,
kWithout
} |
|
|
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)
|
|
◆ Pad
enum class crypto::base64::Pad |
|
strong |
◆ Base64Decode()
std::string crypto::base64::Base64Decode |
( |
std::string_view |
data | ) |
|
Decodes data from Base64.
- Exceptions
-
◆ Base64Encode()
std::string crypto::base64::Base64Encode |
( |
std::string_view |
data, |
|
|
Pad |
pad = Pad::kWith |
|
) |
| |
Encodes data to Base64, add padding by default.
- Parameters
-
pad | controls if pad should be added or not |
- Exceptions
-
◆ Base64UrlDecode()
std::string crypto::base64::Base64UrlDecode |
( |
std::string_view |
data | ) |
|
Decodes data from Base64 (using URL alphabet)
- Exceptions
-
◆ Base64UrlEncode()
std::string crypto::base64::Base64UrlEncode |
( |
std::string_view |
data, |
|
|
Pad |
pad = Pad::kWith |
|
) |
| |
Encodes data to Base64 (using URL alphabet), add padding by default.
- Parameters
-
pad | controls if pad should be added or not |
- Exceptions
-