fastc-core · RFC 4648 encode/decode
fastc-core-base64
fastc-core-base64 implements RFC 4648 encoding and decoding with both the standard and URL-safe alphabets. Decode is constant-time so crypto callers can use it without leaking through timing.
capability none — pure, does no I/O
What it ships (v0.1.0)
- Standard and URL-safe alphabets
- Streaming encoder
- Constant-time decode
When to use it
Encoding binary for JSON, tokens, and crypto payloads.
Example
use base64::encode;
fn tok(bytes: Bytes) -> String {
return encode(bytes);
} fastc-core-base64 — minimal usage fastc-core-base64 v0.1.0
Roadmap
Base32 support is under consideration for v0.2.
Implements RFC 4648.
Provenance
Like every fastc-core package, fastc-core-base64 ships with
content-hashed, cosign-keyless-signed releases and SLSA L3 provenance. It is
vendored, not pulled from a central registry — there is no account to compromise.
See also
- github.com/fastc-lang/fastc-core-base64 — source, at
v0.1.0 - docs.fastc-lang.com/language/fastc-core/ — the per-package API deep-dive
- All eleven fastc-core packages →