Skip to content
TonyD365-Agent edited this page Nov 21, 2026 · 3 revisions

FAQ

Why not just use TLS? TLS needs certificates, which on a LAN means running your own CA or pinning self-signed certificates, plus a connection-oriented transport. lanpair works on single messages over any transport, binds each message to a recipient, and handles replay across restarts.

Does lanpair open network connections? Host and Device do: one UDP port each, plus mDNS. The lower-level Sealer / Opener don't: their messages are bytes you send yourself.

Is the body encrypted? Yes, to the recipient only (X25519 + ChaCha20-Poly1305). Metadata (who, when, how much) is visible.

Can I broadcast one message to many devices? Seal it once per recipient: each envelope is encrypted to and bound to one device.

What happens if a device is lost or stolen? Unpair it on every peer (host.unpair(device_id), or opener.remove_peer(device_id)), so nothing new is accepted from it. With Host / Device 1.3+, its seed can't decrypt messages someone recorded earlier (forward secrecy), except those of its last ~20 minutes if it was taken while running. Before 1.3, or with the bare building blocks and no session keys, it can.

What if the clocks are wrong? Messages more than 30 s off are refused. Keep NTP on, or pass a larger max_skew (which widens the replay window for the in-memory store).

Which Python versions and platforms? Python 3.10+, on Linux, macOS and Windows (tested in CI).

Has it been audited? Not externally yet. It is tested, property-tested, fuzzed, and run against an attacker in a simulated LAN before releases. Report vulnerabilities privately as described in SECURITY.md.

Will 1.x break my code? No: lanpair follows semantic versioning; breaking changes wait for 2.0.

Clone this wiki locally