mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 06:12:05 -04:00
core:encoding/base64 currently decodes leniently: it infers padding from the last one or two bytes, accepts missing/extra/interior padding, and does not check the trailing padding bits required by RFC 4648 Section 3.5. Go exposes canonical decoding as `Encoding.Strict()`; Odin has no equivalent, so downstream ports (e.g. age) have to reimplement base64 from scratch. This adds opt-in strict decoding through a `Decode_Options` bit set. Existing calls and behavior are unchanged.