larzbase64
Encode and decode base64, in pure Larzscript.
A real base64 codec built from the ground up - triple-byte-to-4-character encoding with proper padding, and a matching decoder. Used internally by jwt (base64url, no padding) for token encoding.
larzscript pkg install base64
What you get
- Real triple-byte-to-4-char encoding, proper padding
- Matching decoder, ignores invalid characters
- Pure Larzscript, no OS base64 binary needed
- Powers larzjwt's base64url token encoding
Try it
import "base64" as b64
print(b64.encode("hello"))
print(b64.decode("aGVsbG8="))Output
aGVsbG8= hello
Why it's in the Larz Stack
larzbase64 is a real Larzscript package (larzscript pkg install base64) - money-native, zero dependencies, the same language as the rest of the estate, not a separate Python runtime. It composes with the rest of the Larz Stack and the Larz framework.