P2P Sharing
Learn more about how peer-to-peer sharing works on The Files Lab.
The Files Lab's peer-to-peer sharing feature enables direct transfers between users without relying on any servers. It uses WebRTC technology for secure, encrypted, browser-to-browser transfers.
How It Works
- Short Link - A short, easy-to-share link is created containing your sharing session information.
- Connection Establishment - When someone uses your share link, WebRTC connection is established using Session Description Protocol (SDP).
Security Features
- DTLS Encryption - All peer-to-peer connections are secured using DTLS (Datagram Transport Layer Security).
- Direct Transfer - Data is transferred directly between browsers, never passing through any server.
- Secure Chat (XChaCha20-Poly1305 & Kyber ML-KEM) - Secure chat messages are double-encrypted using XChaCha20-Poly1305 and Kyber ML-KEM for quantum-resistant protection.
How XChaCha20-Poly1305 & Kyber ML-KEM Work in Secure Chat
Secure chat messages in Files Lab use a hybrid encryption approach:
- Kyber ML-KEM - A quantum-resistant key encapsulation mechanism (KEM) that securely exchanges encryption keys between peers.
- XChaCha20-Poly1305 - A high-speed, authenticated encryption algorithm that ensures confidentiality and integrity of messages.
- Messages are encrypted with XChaCha20-Poly1305 using session keys derived from Kyber ML-KEM.
- This combination protects chat data against both classical and quantum attacks.
Privacy
- Files Lab never sees or stores your shared data.
- All transfers happen directly between peers (browsers).
Connection Process
When sharing begins, your browser generates a unique Peer ID. This ID is used to create a short share link. When someone uses this link, their browser exchanges connection information (SDP) directly with your browser. Once connected, all data transfers happen directly between browsers using WebRTC's secure protocols.
Still have questions?
If you have any questions about the Files Lab's peer-to-peer sharing feature, please contact our support team at support@thefileslab.com.