Skip to main content

Module base64

Module base64 

Source
Expand description

Base64 encoding helpers.

Wraps the workspace base64 crate with the standard alphabet. Encoding emits padded output with no embedded newlines (the trailing = padding is preserved). Decoding accepts both padded and unpadded inputs.

Functionsยง

base64_decode
Decode a base64 string. Accepts both padded and unpadded inputs using the standard alphabet.
base64_encode
Encode bytes to a base64 string using the standard alphabet with trailing = padding (RFC 4648).