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? Remove it on every peer with opener.remove_peer(device_id). Its seed can decrypt messages sent to it that someone recorded, but nothing new is accepted from it.

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