Source:
Base64.h
Base64¶
RFC 4648 with the standard alphabet and = padding.
Functions¶
| Return | Name | Description |
|---|---|---|
void |
base64Encode inline |
Encode in into out as a null-terminated string, truncating rather than overflowing. |
base64Encode¶
inline
Encode in into out as a null-terminated string, truncating rather than overflowing.
More info¶
Two places use it. The WebSocket handshake response encodes a hash of the client key and the protocol's magic string, and the password serialization in the state response obfuscates with an XOR before encoding. Both payloads are short, so the encoder is straightforward rather than optimized.