* Base64 decodes a string * @param base64 the Base64 encoded string * @return the decoded string */
| 448 | * @return the decoded string |
| 449 | */ |
| 450 | inline static std::string from_base64(const std::string& base64) { |
| 451 | auto data = from_base64(base64.data(), base64.length()); |
| 452 | return std::string(reinterpret_cast<char*>(data.data()), data.size()); |
| 453 | } |
| 454 | |
| 455 | /** |
| 456 | * Base64 encodes bytes and writes the result to base64 |