Skip to main content

Module crypto

Module crypto 

Source
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§

TunnelCrypto
Provides encryption and decryption using XChaCha20-Poly1305
TunnelKey
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)