# WebRTC E2EE: Peer to peer video chat with true end to end encryption

> Secure P2P video streaming platform using WebRTC and Insertable Streams API for end-to-end encryption (AES-GCM / ChaCha20). Defends against MITM and replay attacks.

Canonical: https://salaheddinemedkour.me/projects/webrtc-e2ee/
Language: en
Last updated: 2026-11-14
Author: Salah Eddine Medkour

Built by Salah Eddine Medkour. Role: Research and implementation. Year: 2025.

Live site: https://www.researchgate.net/publication/392926889_Implementation_of_an_End-to-End_Encryption_Mechanism_in_WebRTC_Video_Streaming
Source: https://github.com/salahmed-ctrlz/WebRTC-VideoChatApp-with-True-EndToEndEncryption-Enabled

## Overview

A secure peer-to-peer video streaming platform implementing true end-to-end encryption using WebRTC Insertable Streams API. This was the subject of a Master's thesis, with published research on ResearchGate.

## What it does

- True E2EE with AES-GCM and ChaCha20 encryption
- ECDH key exchange for forward secrecy
- Defense against MITM and replay attacks
- Real-time P2P video and audio streaming via WebRTC
- Signaling server with Socket.IO

## Under the hood

- WebRTC Insertable Streams API for media-level encryption
- TweetNaCl.js for ChaCha20-Poly1305 encryption
- Web Crypto API for AES-GCM key derivation
- Node.js + Socket.IO signaling server
- Published as Master's thesis on ResearchGate

## Stack

WebRTC, Node.js, Socket.IO, Web Crypto API, TweetNaCl.js, ECDH

More work: [https://salaheddinemedkour.me/projects.md](https://salaheddinemedkour.me/projects.md)
