/** * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed in accordance with the terms specified in * the LICENSE file found in the root directory of this source tree. */ #pragma once #include namespace osquery { namespace base64 { /** * @brief Decode a base64 encoded string. * * @param encoded The encode base64 string. * @return Decoded string. */ std::string decode(std::string encoded); /** * @brief Encode a string. * * @param A string to encode. * @return Encoded string. */ std::string encode(const std::string& unencoded); } // namespace base64 } // namespace osquery