Expand description
qr-base44: Base44 encoder/decoder for arbitrary bytes using URL-safe QR-compatible alphabet.
- Encoding groups: 2 bytes -> 3 chars; 1 byte -> 2 chars.
- Alphabet: “0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ$%*+-./:” (44 chars, excludes space only)
- Public API encodes &u8 -> String and decodes &str -> Vec
.
Enums§
Constants§
- BASE44_
ALPHABET - Base44 alphabet: URL-safe QR-compatible subset (excludes space only)
Functions§
- decode
- Decode a Base44 string back to raw bytes. Accepts only the Base44 alphabet; returns errors for invalid chars, dangling final char, or overflow.
- decode_
bits - Decode a Base44 string back to bytes, expecting a specific bit count.
- encode
- Encode arbitrary bytes into a Base44 string. Groups of 2 bytes produce 3 characters; a final single byte produces 2 characters.
- encode_
bits - Encode a fixed number of bits (arbitrary length) as a Base44 string with optimal length.