Repository navigation
Home
TonyD365-Agent edited this page Nov 21, 2026
·
5 revisions
lanpair lets devices on the same network pair once and then exchange messages that are encrypted to the recipient, signed by the sender, and checked for replay before your code sees them.
pip install "lanpair[all]"from lanpair import Host from lanpair import Device
host = Host("Front desk"); host.start() dev = Device("Room 3"); dev.start()
host.pairing_offer().print_qr() dev.pair(scanned_text)
for msg in host.messages(): ... dev.send({"type": "checkout"})| Page | For |
|---|---|
| Quick start | Two devices talking securely in five minutes |
| Host and Device | The high-level API: pairing by QR code, storage, options, restarts |
| Recipe: commands over UDP | A complete desk → room example you can run |
| How it works | The envelope, the cryptography, and the order of checks |
| API reference | Every public class and function |
| Troubleshooting | What each EnvelopeError means; discovery and key store problems |
| FAQ | Common questions |
| Roadmap | What is done and what comes next |
For contributors and maintainers: Releasing.
- Source and issues: https://github.com/TonyD365/lanpair
- Package: https://pypi.org/project/lanpair/
- Design and threat model: docs/design.md
- Report a vulnerability privately: SECURITY.md
lanpair is MIT-licensed. Found a mistake on this page? Open an issue.