Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <cstddef> 7 : #include <string> 8 : #include <vector> 9 : 10 : /// Encode and decode data using the RFC4648 base64 format. 11 : /// @{ 12 1 : std::string base64_encode(const std::vector<std::byte>& data); 13 1 : std::vector<std::byte> base64_decode(const std::string& encoded); 14 : /// @}