* Base64 encodes a string * @param str the string to be Base64 encoded * @param url if true, the URL-safe Base64 encoding will be used * @param padded if true, padding is added to the Base64 encoded string * @return the Base64 encoded string */
| 481 | * @return the Base64 encoded string |
| 482 | */ |
| 483 | inline static std::string to_base64(const std::string& str, bool url = false, bool padded = true) { |
| 484 | return to_base64(reinterpret_cast<const uint8_t*>(str.data()), str.length(), url, padded); |
| 485 | } |
| 486 | |
| 487 | /** |
| 488 | * Base64 encodes a string |