Expand description
End-to-end encryption using XChaCha20-Poly1305
This module provides symmetric encryption for tunnel traffic. The encryption key is generated locally and shared via URL fragment, ensuring the relay server cannot decrypt the traffic.
Structs§
- Tunnel
Crypto - Provides encryption and decryption using XChaCha20-Poly1305
- Tunnel
Key - Wrapper for the 256-bit encryption key
Constants§
- KEY_
SIZE - Size of the encryption key in bytes (256 bits)
- NONCE_
SIZE - Size of the nonce in bytes (192 bits for XChaCha20)