In this tutorial we are going to check how to decode a base64 encoded string, using the Arduino core and the ESP32.
**IMPORTANT NOTE**: as indicated in the implementation file of the library, the caller is responsible for freeing the returned buffer with the decoded string. So, although not included in the video, you should call the free function on the returned pointer when you no longer need it.
Implementation file: https://github.com/espressif/esp-idf/...
Free function: https://en.cppreference.com/w/c/memor...
Written tutorial with full source code:
https://techtutorialsx.com/2018/11/27...
Base64 encode online tool: https://www.base64encode.org/
Base64 decode online tool: https://www.base64decode.org/
Format specifiers: http://www.cplusplus.com/reference/cs...
Related content (written tutorials):
Base64 encoding: https://techtutorialsx.com/2017/12/09...
HMAC SHA256: https://techtutorialsx.com/2018/01/25...
AES ECB mode: https://techtutorialsx.com/2018/04/18...
A lot more ESP32 tutorials:
https://techtutorialsx.com/category/e...
ESP8266 tutorials:
https://techtutorialsx.com/category/e...