Skip to content

lanpair 1.3.0: forward secrecy

Choose a tag to compare

@TonyD365-Agent TonyD365-Agent released this 21 Nov 20:00
· 4 commits to main since this release
2dbf799
  • Forward secrecy for Host / Device: messages are encrypted to short-lived session
    keys that exist only in memory, are replaced every 10 minutes and deleted after one more
    period, so a seed stolen later can't decrypt recorded messages. Peers exchange session
    keys inside signed, encrypted control messages; a message sealed to a key the receiver
    no longer has (after a restart) is resent to its new key. Works with peers on 1.2 and
    older, which keep using the long-term key.
  • Sealer.seal(..., box_key=...), Opener.add_session_key(), Opener.remove_session_key()
    and Opener.open_detailed() let the building blocks use session keys too.
  • Releases carry the wheel and source archive with signed SLSA build provenance
    (gh attestation verify ... -R TonyD365/lanpair).
  • Tested on Python 3.10 to 3.15, and the package now lists those versions.
  • Homepage at https://tonyd365.github.io/lanpair/ (site/, deployed by GitHub Pages), and
    Documentation, Source, Issues and Changelog links on PyPI.

Install: pip install "lanpair[all]". Upgrading from 1.2.x needs no code changes; peers on 1.2 keep working with 1.3.