Security & Identity · zero-dependency · MIT

larzqr

QR codes from scratch.

A real QR encoder — Reed-Solomon error correction over GF(256), all eight masks and BCH format info — verified against the QR spec's own test vectors. Pairs with larztotp for 2FA enrollment.

larzscript pkg install qr
View on GitHub →Learn the stack

What you get

Try it

import "qr" as qr
let code = qr.generate("HELLO")
print(code["size"], "x", code["size"], "modules, mask", code["mask"])
print(qr.verify_roundtrip("HELLO"))
let data = qr.encode_data("HELLO")
print(qr.verify_syndrome(data, 10))
Output
21 x 21 modules, mask 3
true
true

Why it's in the Larz Stack

larzqr is a real Larzscript package (larzscript pkg install qr) - 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.