![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <Base64Url.h>
Static Public Member Functions | |
static bool | encode (const std::string &plain, std::string &encoded) |
static bool | decode (const std::string &encoded, std::string &plain) |
This is added to wrap Base64 functionality because we have no clean way of using it across all cases. We need to use Base64 on device and we'll use libssl (BoringSSL) for that, but the code in OpenSSL and BoringSSL differs for Base64! :( So for unit tests, and for running on Mac/Ubuntu, we'll use code copied over from mbedtls.
|
static |
|
static |
Encodes plain text into URL-friendly Base64 version.
plain | IN The text to encode. |
encoded | OUT Base64 string but further modified so that '+', '/' and '=' are converted to '%2B', '%2F' and '%3D' respectively. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0