DoxigAlpha

base64

(best-effort) constant time base64 encoding and decoding.

The base64 variant to use.

Types

#
Variant
The base64 variant to use.

Returns the length of the encoded base64 string for a given length.

Functions

#
encodedLen
Returns the length of the encoded base64 string for a given length.
decodedLen
Returns the maximum possible decoded size for a given input length - The actual length may be less if the input includes padding.
encode
Encodes a binary buffer into a base64 string.
decode
Decodes a base64 string into a binary buffer.
decoderWithIgnore
Creates a new decoder that ignores certain characters.