Base64 encoding support.
More...
#include <base/security/Base64.h>
Inherits Object.
|
static constexpr unsigned int | BITS_PER_CHARACTER = 6 |
|
static const signed char | VALUES [256] |
|
static const char | DIGITS [64] |
|
static const char | PAD = '=' |
|
Base64 encoding support.
Base64 encoding (see RFC 2045 section 6.8).
- Version
- 1.1
◆ encode() [1/2]
Returns the Base64 encoded data.
- Parameters
-
◆ encode() [2/2]
static String Base64::encode |
( |
const uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
staticnoexcept |
Returns the Base64 encoded data.
- Parameters
-
buffer | Buffer holding the data. |
size | The number of octets in the buffer. |
◆ valueToDigit() [1/2]
static int Base64::valueToDigit |
( |
char |
digit | ) |
|
|
inlinestaticnoexcept |
Returns the value [0;63] of the specified digit.
- Returns
- -1 if not a valid Base64 digit.
◆ valueToDigit() [2/2]
static char Base64::valueToDigit |
( |
unsigned int |
value | ) |
|
|
inlinestaticnoexcept |
Returns the digit for the specified value. The value returned is undefined if the value is not in the range [0;63].
◆ DIGITS
const char Base64::DIGITS[64] |
|
static |
Digits of the Base64 encoding.
◆ PAD
const char Base64::PAD = '=' |
|
static |
The special character used to denote unused digits.
◆ VALUES
const signed char Base64::VALUES[256] |
|
static |
Lookup table for mapping digits into values.