Crate base64easy

Source
Expand description

§base64easy

Version Documentation License

Correct, fast, and configurable base64 decoding and encoding. Base64 transports binary data efficiently in contexts where only plain text is allowed.

A simple and fast base64 library that is easy to use and configure. Support no_std and std environments.

Enums§

EngineKind
The base64 encoding engine kind to use when encoding/decoding data.
Error
Errors that can occur while encoding/decoding base64.

Functions§

decode
Decode base64 string to bytes.
decode_slice
Decode base64 string to bytes into a pre-allocated buffer.
decoded_len_estimate
Returns a conservative estimate of the decoded size of encoded_len base64 symbols (rounded up to the next group of 3 decoded bytes).
encode
Encode bytes to base64 string.
encode_slice
Encode bytes to base64 string into a pre-allocated buffer.
encoded_len
Calculate the base64 encoded length for a given input length, optionally including any appropriate padding bytes.