Data & Storage · zero-dependency · MIT

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
View on GitHub →Learn the stack

What you get

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.