Skip to main content

Crate neco_base64

Crate neco_base64 

Source
Expand description

Zero-dependency Base64 encoder and decoder.

Supports standard (RFC 4648 section 4) and URL-safe (RFC 4648 section 5) alphabets with configurable padding.

Enums§

Base64Error

Functions§

decode
Decode standard Base64. Accepts both padded and unpadded input.
decode_url
Decode URL-safe Base64. Accepts both padded and unpadded input.
decode_url_strict
Decode URL-safe Base64 with strict validation: rejects padding characters and requires that unused trailing bits are zero.
encode
Encode bytes as standard Base64 with padding.
encode_url
Encode bytes as URL-safe Base64 without padding.
encode_url_padded
Encode bytes as URL-safe Base64 with padding.