Overview of the rmux web-share E2EE Protocol v1
mainThe rmux web-share end-to-end-encrypted (E2EE) protocol (version 1) provides confidentiality and integrity for terminal payloads sent from a browser client to a local rmux daemon (the host) over an untrusted relay (e.g., a Cloudflare tunnel).
Key characteristics:
- Hybrid Post-Quantum Security: Protects against future quantum threats by combining X25519 and ML-KEM-768. Confidentiality holds as long as the 256-bit share token remains secret and at least one of the key agreement algorithms remains unbroken.
- Transport: Uses WebSockets. Handshake messages are sent as Text frames (UTF-8 JSON), while all subsequent data is sent as Binary frames containing encrypted records.
- Trust Model: The relay (tunnel/proxy) is considered untrusted and can only observe ciphertext. The protocol is designed to protect against passive observers, active network attackers, MitM, and 'harvest now, decrypt later' quantum attacks.