Skip to main content

codec_base64/
lib.rs

1// SPDX-FileCopyrightText: 2026 ReallyMe LLC
2//
3// SPDX-License-Identifier: MIT OR Apache-2.0
4
5//! Standard base64 (RFC 4648) encode/decode with canonical padding required on decode.
6
7mod decode;
8mod encode;
9mod error;
10
11pub use decode::base64_to_bytes;
12/// Maximum accepted encoded base64 text length.
13pub const MAX_BASE64_INPUT_LEN: usize = 2 * 1024 * 1024;
14pub use encode::bytes_to_base64;
15pub use error::Base64Error;