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§
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.