ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
base64.h File Reference

Base64 encoder/decoder. More...

#include "protocore_config.h"

Go to the source code of this file.

Detailed Description

Base64 encoder/decoder.

Used to encode the SHA-1 digest in the WebSocket handshake response (RFC 6455 ยง4.2.2) and to decode Basic Auth credentials (RFC 7617).

Encode is a portable software codec on every target (fast; it only handles the public WebSocket-accept digest). Decode touches the secret Basic-auth credentials, so on the ESP32 it uses mbedTLS's constant-time decoder (side-channel hardened) and on the native test target the portable software decoder. See base64.cpp and docs/FEATURE_PERFORMANCE.md section 2.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file base64.h.