Skip to main content

decode_base64

Function decode_base64 

Source
pub fn decode_base64(codec: CodecId, text: &str) -> Result<Vec<u8>>
Expand description

Decodes standard base64 text back to bytes under the default decode limits, failing closed on any invalid character, length, or padding.

Convenience wrapper over decode_base64_with_limits using DecodeLimits::default; prefer the limits-bearing form on the untrusted decode path so the configured input ceiling is honored.

Shared with sim-codec-bitwise-base64 (see encode_base64).